depot/third_party/nixpkgs/pkgs/tools/security/ccid/default.nix
Default email 1ffc76754d Project import generated by Copybara.
GitOrigin-RevId: a5cc7d3197705f933d88e97c0c61849219ce76c1
2020-07-18 18:06:22 +02:00

30 lines
757 B
Nix

{ stdenv, fetchurl, pcsclite, pkgconfig, libusb1, perl }:
stdenv.mkDerivation rec {
pname = "ccid";
version = "1.4.33";
src = fetchurl {
url = "https://ccid.apdu.fr/files/${pname}-${version}.tar.bz2";
sha256 = "0974h2v9wq0j0ajw3c7yckaw8wqcppb2npfhfhmv9phijy9xlmjj";
};
postPatch = ''
patchShebangs .
substituteInPlace src/Makefile.in --replace /bin/echo echo
'';
preConfigure = ''
configureFlagsArray+=("--enable-usbdropdir=$out/pcsc/drivers")
'';
nativeBuildInputs = [ pkgconfig perl ];
buildInputs = [ pcsclite libusb1 ];
meta = with stdenv.lib; {
description = "ccid drivers for pcsclite";
homepage = "https://ccid.apdu.fr/";
license = licenses.gpl2Plus;
platforms = platforms.unix;
};
}