1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00
nixpkgs/pkgs/tools/security/ccid/default.nix
Lluís Batlle i Rossell 56cfcdb27f Adding pcsclite with the opensource ccid usb drivers.
This gives a daemon controlling the smartcard reader used to read the
Spanish identity card.


svn path=/nixpkgs/trunk/; revision=19319
2010-01-09 17:35:57 +00:00

27 lines
755 B
Nix

{stdenv, fetchurl, pcsclite, pkgconfig, libusb, perl}:
stdenv.mkDerivation {
name = "ccid-1.3.11";
src = fetchurl {
url = https://alioth.debian.org/frs/download.php/3080/ccid-1.3.11.tar.bz2;
sha256 = "01l9956wids087d38bprr8jqcl05j48cdp25k9q7vzran215mgzp";
};
patchPhase = ''
sed -i 's,/usr/bin/env perl,${perl}/bin/perl,' src/*.pl
'';
preConfigure = ''
configureFlags="$configureFlags --enable-usbdropdir=$out/pcsc/drivers"
'';
buildInputs = [ pcsclite pkgconfig libusb ];
meta = {
description = "ccid drivers for pcsclite";
homepage = http://pcsclite.alioth.debian.org/;
license = "GPLv2+";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux;
};
}