mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
31 lines
756 B
Nix
31 lines
756 B
Nix
{ lib, stdenv, fetchurl, pcsclite, pkg-config, libusb1, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ccid";
|
|
version = "1.4.36";
|
|
|
|
src = fetchurl {
|
|
url = "https://ccid.apdu.fr/files/${pname}-${version}.tar.bz2";
|
|
sha256 = "sha256-K3OsiF8byrgZ3DV4lE0XQGJB4MckBCmJzqQ3NTtnScE=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|