summary refs log tree commit diff
path: root/pkgs/tools/security/acsccid
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2018-11-08 00:53:36 +0100
committerDomen Kožar <domen@enlambda.com>2018-11-08 10:44:50 +0000
commitcd80aee9895807dcf327ed8efc79e3ad50705940 (patch)
tree59432c5064a5026b8ebe2a9c1b37b0e0a8182ca5 /pkgs/tools/security/acsccid
parentcc6d5b34fa64af63a74aca35c3bf4c173ae3d591 (diff)
downloadnixpkgs-cd80aee9895807dcf327ed8efc79e3ad50705940.tar
nixpkgs-cd80aee9895807dcf327ed8efc79e3ad50705940.tar.gz
nixpkgs-cd80aee9895807dcf327ed8efc79e3ad50705940.tar.bz2
nixpkgs-cd80aee9895807dcf327ed8efc79e3ad50705940.tar.lz
nixpkgs-cd80aee9895807dcf327ed8efc79e3ad50705940.tar.xz
nixpkgs-cd80aee9895807dcf327ed8efc79e3ad50705940.tar.zst
nixpkgs-cd80aee9895807dcf327ed8efc79e3ad50705940.zip
acsccid: init at 1.1.6
Diffstat (limited to 'pkgs/tools/security/acsccid')
-rw-r--r--pkgs/tools/security/acsccid/default.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/tools/security/acsccid/default.nix b/pkgs/tools/security/acsccid/default.nix
new file mode 100644
index 00000000000..246a2c5d991
--- /dev/null
+++ b/pkgs/tools/security/acsccid/default.nix
@@ -0,0 +1,54 @@
+{ stdenv, fetchFromGitHub, autoconf, automake, libtool, gettext, flex, perl, pkgconfig, pcsclite, libusb }:
+
+stdenv.mkDerivation rec {
+  version = "1.1.6";
+  name = "acsccid-${version}";
+
+  src = fetchFromGitHub {
+    owner = "acshk";
+    repo = "acsccid";
+    rev = "26bc84c738d12701e6a7289ed578671d71cbf3cb";
+    sha256 = "09k7hvcay092wkyf0hjsvimg1h4qzss1nk7m5yanlib4ldhw5g5c";
+  };
+
+  doCheck = true;
+
+  nativeBuildInputs = [ pkgconfig ];
+  buildInputs = [ pcsclite libusb autoconf automake libtool gettext flex perl ];
+
+  postPatch = ''
+    sed -e s_/bin/echo_echo_g -i src/Makefile.am
+    patchShebangs src/convert_version.pl
+    patchShebangs src/create_Info_plist.pl
+  '';
+
+  preConfigure = ''
+    libtoolize --force
+    aclocal
+    autoheader
+    automake --force-missing --add-missing
+    autoconf
+    configureFlags="$configureFlags --enable-usbdropdir=$out/pcsc/drivers"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "acsccid is a PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card readers.";
+    longDescription = ''
+      acsccid is a PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card
+      readers. This library provides a PC/SC IFD handler implementation and
+      communicates with the readers through the PC/SC Lite resource manager (pcscd).
+
+      acsccid is based on ccid. See CCID free software driver for more
+      information:
+      https://ccid.apdu.fr/
+
+      It can be enabled in /etc/nixos/configuration.nix by adding:
+        services.pcscd.enable = true;
+        services.pcscd.plugins = [ pkgs.acsccid ];
+    '';
+    homepage = src.meta.homepage;
+    license = licenses.lgpl2Plus;
+    maintainers = with maintainers; [ roberth ];
+    platforms = with platforms; unix;
+  };
+}