summary refs log tree commit diff
path: root/pkgs/tools/security/eid-viewer
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2014-11-18 16:12:59 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2014-11-23 00:42:52 +0100
commitd72f6c85e45a38249d4db888f092e91b20f3f099 (patch)
tree7c4a09f859484d0cfd0a8a5dd83cfb07281930eb /pkgs/tools/security/eid-viewer
parente5118655804b7cbb85f5487fa86c446068fed46e (diff)
downloadnixlib-d72f6c85e45a38249d4db888f092e91b20f3f099.tar
nixlib-d72f6c85e45a38249d4db888f092e91b20f3f099.tar.gz
nixlib-d72f6c85e45a38249d4db888f092e91b20f3f099.tar.bz2
nixlib-d72f6c85e45a38249d4db888f092e91b20f3f099.tar.lz
nixlib-d72f6c85e45a38249d4db888f092e91b20f3f099.tar.xz
nixlib-d72f6c85e45a38249d4db888f092e91b20f3f099.tar.zst
nixlib-d72f6c85e45a38249d4db888f092e91b20f3f099.zip
Add eid-viewer: Java reader for Belgian eID identity cards
Diffstat (limited to 'pkgs/tools/security/eid-viewer')
-rw-r--r--pkgs/tools/security/eid-viewer/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/tools/security/eid-viewer/default.nix b/pkgs/tools/security/eid-viewer/default.nix
new file mode 100644
index 000000000000..cb8b9db908bd
--- /dev/null
+++ b/pkgs/tools/security/eid-viewer/default.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchurl, jre, makeWrapper, pcsclite }:
+
+stdenv.mkDerivation rec {
+  # TODO: find out what the version components actually mean, if anything:
+  package = "eid-viewer-4.0.7-195";
+  build = "tcm406-258907";
+  name = "${package}-${build}";
+
+  src = fetchurl {
+    url = "http://eid.belgium.be/en/binaries/${package}.src.tar_${build}.gz";
+    sha256 = "e263e6751ef7c185e278a607fdc46c207306d9a56c6ddb2ce6f58fb4464a2893";
+  };
+
+  buildInputs = [ jre makeWrapper pcsclite ];
+
+  unpackPhase = "tar -xzf ${src} --strip-components=1";
+
+  preConfigure = ''
+    substituteInPlace eid-viewer.sh.in --replace "exec java" "exec ${jre}/bin/java"
+  '';
+
+  postInstall = ''
+    wrapProgram $out/bin/eid-viewer --suffix LD_LIBRARY_PATH : ${pcsclite}/lib
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Belgian electronic identity card (eID) viewer";
+    homepage = http://eid.belgium.be/en/using_your_eid/installing_the_eid_software/linux/;
+    license = with licenses; lgpl3;
+    longDescription = ''
+      A simple, graphical Java application to view, print and save data from
+      Belgian electronic identity cards. Independent of the eid-mw package,
+      which is required to actually use your eID for authentication or signing.
+    '';
+    maintainers = with maintainers; [ nckx ];
+    platforms = with platforms; linux;
+  };
+}