2013-02-23 17:00:49 +04:00
|
|
|
{ stdenv, fetchurl, pcsclite, pkgconfig, libusb1, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ccid-1.4.9";
|
2010-01-09 20:35:57 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-02-23 17:00:49 +04:00
|
|
|
url = "https://alioth.debian.org/frs/download.php/3866/${name}.tar.bz2";
|
|
|
|
sha256 = "1dj0cw4js4ab678l94rf9p8a8gppkf1hm66qhmq5ajra6r5nv3m9";
|
2010-01-09 20:35:57 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's,/usr/bin/env perl,${perl}/bin/perl,' src/*.pl
|
2013-02-23 17:00:49 +04:00
|
|
|
substituteInPlace src/Makefile.in --replace /bin/echo echo
|
2010-01-09 20:35:57 +03:00
|
|
|
'';
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlags="$configureFlags --enable-usbdropdir=$out/pcsc/drivers"
|
|
|
|
'';
|
|
|
|
|
2013-02-23 17:00:49 +04:00
|
|
|
buildInputs = [ pcsclite pkgconfig libusb1 ];
|
2010-01-09 20:35:57 +03: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;
|
|
|
|
};
|
|
|
|
}
|