01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
30 lines
755 B
Nix
30 lines
755 B
Nix
{ lib, stdenv, fetchurl, pcsclite, pkg-config, libusb1, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ccid";
|
|
version = "1.5.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://ccid.apdu.fr/files/${pname}-${version}.tar.bz2";
|
|
sha256 = "sha256-56eMOY7A1hek+YuscNW2T3hokoTdCuh9RpLihX8Rc3c=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs .
|
|
substituteInPlace src/Makefile.in --replace /bin/echo echo
|
|
'';
|
|
|
|
preConfigure = ''
|
|
configureFlagsArray+=("--enable-usbdropdir=$out/pcsc/drivers")
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config perl ];
|
|
buildInputs = [ pcsclite libusb1 ];
|
|
|
|
meta = with lib; {
|
|
description = "ccid drivers for pcsclite";
|
|
homepage = "https://ccid.apdu.fr/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|