From d72f6c85e45a38249d4db888f092e91b20f3f099 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 18 Nov 2014 16:12:59 +0100 Subject: [PATCH] Add eid-viewer: Java reader for Belgian eID identity cards --- lib/maintainers.nix | 1 + pkgs/tools/security/eid-viewer/default.nix | 38 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 41 insertions(+) create mode 100644 pkgs/tools/security/eid-viewer/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index e5960eaf470e..8631c4ba83c5 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -108,6 +108,7 @@ MP2E = "Cray Elliott "; msackman = "Matthew Sackman "; nathan-gs = "Nathan Bijnens "; + nckx = "Tobias Geerinckx-Rice "; notthemessiah = "Brian Cohen "; nslqqq = "Nikita Mikhailov "; ocharles = "Oliver Charles "; 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 912decd2afc7..89f24ea39a7a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1063,6 +1063,8 @@ let edk2 = callPackage ../development/compilers/edk2 { }; + eid-viewer = callPackage ../tools/security/eid-viewer { }; + emscripten = callPackage ../development/compilers/emscripten { }; emscriptenfastcomp = callPackage ../development/compilers/emscripten-fastcomp { };