2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pcsclite, pkg-config, libusb1, perl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ccid";
|
2023-03-27 19:17:25 +00:00
|
|
|
version = "1.5.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://ccid.apdu.fr/files/${pname}-${version}.tar.bz2";
|
2023-03-27 19:17:25 +00:00
|
|
|
sha256 = "sha256-E5NEh+b4tI9pmhbTZ8x6GvejyodN5yGsbpYzvrhuchk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
substituteInPlace src/Makefile.in --replace /bin/echo echo
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray+=("--enable-usbdropdir=$out/pcsc/drivers")
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config perl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ pcsclite libusb1 ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "ccid drivers for pcsclite";
|
|
|
|
homepage = "https://ccid.apdu.fr/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|