Add eid-viewer: Java reader for Belgian eID identity cards

This commit is contained in:
Tobias Geerinckx-Rice 2014-11-18 16:12:59 +01:00
parent e511865580
commit d72f6c85e4
3 changed files with 41 additions and 0 deletions

View File

@ -108,6 +108,7 @@
MP2E = "Cray Elliott <MP2E@archlinux.us>";
msackman = "Matthew Sackman <matthew@wellquite.org>";
nathan-gs = "Nathan Bijnens <nathan@nathan.gs>";
nckx = "Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>";
notthemessiah = "Brian Cohen <brian.cohen.88@gmail.com>";
nslqqq = "Nikita Mikhailov <nslqqq@gmail.com>";
ocharles = "Oliver Charles <ollie@ocharles.org.uk>";

View File

@ -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;
};
}

View File

@ -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 { };