2013-02-23 14:00:49 +01:00
|
|
|
{ stdenv, fetchurl, pcsclite, pkgconfig, libusb1, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
2013-11-20 08:49:33 +01:00
|
|
|
name = "ccid-1.4.13";
|
2010-01-09 18:35:57 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-11-20 08:49:33 +01:00
|
|
|
url = "http://pkgs.fedoraproject.org/repo/pkgs/pcsc-lite-ccid/ccid-1.4.13.tar.bz2/89c167a873df1f8bc0dc907ce209e5ff/ccid-1.4.13.tar.bz2";
|
|
|
|
sha256 = "1w0mxb5qzps9x2fcggv958mwgwmvfxxj4nspxs67fa7qg7r6yxar";
|
2010-01-09 18:35:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's,/usr/bin/env perl,${perl}/bin/perl,' src/*.pl
|
2013-02-23 14:00:49 +01:00
|
|
|
substituteInPlace src/Makefile.in --replace /bin/echo echo
|
2010-01-09 18:35:57 +01:00
|
|
|
'';
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlags="$configureFlags --enable-usbdropdir=$out/pcsc/drivers"
|
|
|
|
'';
|
|
|
|
|
2013-02-23 14:00:49 +01:00
|
|
|
buildInputs = [ pcsclite pkgconfig libusb1 ];
|
2010-01-09 18:35:57 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "ccid drivers for pcsclite";
|
|
|
|
homepage = http://pcsclite.alioth.debian.org/;
|
|
|
|
license = "GPLv2+";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|