about summary refs log tree commit diff
path: root/pkgs/tools/security/ccid
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-01-09 17:35:57 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-01-09 17:35:57 +0000
commit56cfcdb27fb21658d19fa28ca6817eeba577da9e (patch)
tree0dc59cbc2ec604566cddb4ac02e59747ff00224c /pkgs/tools/security/ccid
parent380bd29bed8a556147e29ea8f0985077b8355eee (diff)
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
Diffstat (limited to 'pkgs/tools/security/ccid')
-rw-r--r--pkgs/tools/security/ccid/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/security/ccid/default.nix b/pkgs/tools/security/ccid/default.nix
new file mode 100644
index 0000000000000..896e034ee76bd
--- /dev/null
+++ b/pkgs/tools/security/ccid/default.nix
@@ -0,0 +1,26 @@
+{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;
+  };
+}