2013-02-23 13:00:49 +00:00
|
|
|
{ stdenv, fetchurl, pcsclite, pkgconfig, libusb1, perl }:
|
2014-09-15 08:55:31 +01:00
|
|
|
|
2013-02-23 13:00:49 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ccid";
|
2019-08-17 23:42:03 +01:00
|
|
|
version = "1.4.31";
|
2010-01-09 17:35:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://ccid.apdu.fr/files/${pname}-${version}.tar.bz2";
|
2019-08-17 23:42:03 +01:00
|
|
|
sha256 = "1xz8ikr6vk73w3xnwb931yq8lqc1zrj8c3v34n6h63irwjvdfj3b";
|
2010-01-09 17:35:57 +00:00
|
|
|
};
|
|
|
|
|
2017-10-06 10:56:35 +01:00
|
|
|
postPatch = ''
|
2015-08-06 03:25:49 +01:00
|
|
|
patchShebangs .
|
2013-02-23 13:00:49 +00:00
|
|
|
substituteInPlace src/Makefile.in --replace /bin/echo echo
|
2010-01-09 17:35:57 +00:00
|
|
|
'';
|
2015-08-06 03:25:49 +01:00
|
|
|
|
2010-01-09 17:35:57 +00:00
|
|
|
preConfigure = ''
|
2015-08-06 03:25:49 +01:00
|
|
|
configureFlagsArray+=("--enable-usbdropdir=$out/pcsc/drivers")
|
2010-01-09 17:35:57 +00:00
|
|
|
'';
|
|
|
|
|
2015-08-06 03:25:49 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig perl ];
|
|
|
|
buildInputs = [ pcsclite libusb1 ];
|
2010-01-09 17:35:57 +00:00
|
|
|
|
2014-09-15 08:55:31 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-01-09 17:35:57 +00:00
|
|
|
description = "ccid drivers for pcsclite";
|
2018-08-05 15:32:15 +01:00
|
|
|
homepage = https://ccid.apdu.fr/;
|
2014-09-15 08:55:31 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2019-05-03 18:19:51 +01:00
|
|
|
platforms = platforms.unix;
|
2010-01-09 17:35:57 +00:00
|
|
|
};
|
|
|
|
}
|