summary refs log tree commit diff
path: root/pkgs/tools/security/pcsclite
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/pcsclite
parent380bd29bed8a556147e29ea8f0985077b8355eee (diff)
downloadnixlib-56cfcdb27fb21658d19fa28ca6817eeba577da9e.tar
nixlib-56cfcdb27fb21658d19fa28ca6817eeba577da9e.tar.gz
nixlib-56cfcdb27fb21658d19fa28ca6817eeba577da9e.tar.bz2
nixlib-56cfcdb27fb21658d19fa28ca6817eeba577da9e.tar.lz
nixlib-56cfcdb27fb21658d19fa28ca6817eeba577da9e.tar.xz
nixlib-56cfcdb27fb21658d19fa28ca6817eeba577da9e.tar.zst
nixlib-56cfcdb27fb21658d19fa28ca6817eeba577da9e.zip
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/pcsclite')
-rw-r--r--pkgs/tools/security/pcsclite/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/security/pcsclite/default.nix b/pkgs/tools/security/pcsclite/default.nix
new file mode 100644
index 000000000000..03924858e060
--- /dev/null
+++ b/pkgs/tools/security/pcsclite/default.nix
@@ -0,0 +1,25 @@
+{stdenv, fetchurl, hal, pkgconfig, dbus}:
+stdenv.mkDerivation {
+  name = "pcsclite-1.5.5";
+
+  src = fetchurl {
+    url = https://alioth.debian.org/frs/download.php/3082/pcsc-lite-1.5.5.tar.bz2;
+    sha256 = "09pdf4dbzjh235zp6x7aiby266i7kmmmz6bjdyf9mzyyq7ryc785";
+  };
+
+  # The OS should care on preparing the drivers into this location
+  configureFlags = [ "--enable-usbdropdir=/var/lib/pcsc/drivers" ];
+
+  preConfigure = ''
+    configureFlags="$configureFlags --enable-confdir=$out/etc"
+  '';
+  buildInputs = [ hal pkgconfig dbus ];
+
+  meta = {
+    description = "Middleware to access a smart card using SCard API (PC/SC)";
+    homepage = http://pcsclite.alioth.debian.org/;
+    license = "BSD";
+    maintainers = with stdenv.lib.maintainers; [viric];
+    platforms = with stdenv.lib.platforms; linux;
+  };
+}