1 { lib, stdenv, fetchurl, jre, pcsclite, makeDesktopItem, makeWrapper }:
6 richclient = fetchurl {
7 url = "https://jnlp.openecard.org/richclient-${version}-20171212-0958.jar";
8 sha256 = "1ckhyhszp4zhfb5mn67lz603b55z814jh0sz0q5hriqzx017j7nr";
11 url = "https://jnlp.openecard.org/cifs-${version}-20171212-0958.jar";
12 sha256 = "0rc862lx3y6sw87r1v5xjmqqpysyr1x6yqhycqmcdrwz0j3wykrr";
15 url = "https://raw.githubusercontent.com/ecsec/open-ecard/1.2.3/gui/graphics/src/main/ext/oec_logo_bg-transparent.svg";
16 sha256 = "0rpmyv10vjx2yfpm03mqliygcww8af2wnrnrppmsazdplksaxkhs";
19 in stdenv.mkDerivation rec {
23 src = srcs.richclient;
27 nativeBuildInputs = [ makeWrapper ];
29 desktopItem = makeDesktopItem {
31 desktopName = "Open eCard App";
32 genericName = "eCard App";
33 comment = "Client side implementation of the eCard-API-Framework";
34 icon = "oec_logo_bg-transparent.svg";
36 categories = [ "Utility" "Security" ];
40 mkdir -p $out/share/java
41 cp ${srcs.richclient} $out/share/java/richclient-${version}.jar
42 cp ${srcs.cifs} $out/share/java/cifs-${version}.jar
44 mkdir -p $out/share/applications $out/share/pixmaps
45 cp $desktopItem/share/applications/* $out/share/applications
46 cp ${srcs.logo} $out/share/pixmaps/oec_logo_bg-transparent.svg
49 makeWrapper ${jre}/bin/java $out/bin/${pname} \
50 --add-flags "-cp $out/share/java/cifs-${version}.jar" \
51 --add-flags "-jar $out/share/java/richclient-${version}.jar" \
52 --suffix LD_LIBRARY_PATH ':' ${lib.getLib pcsclite}/lib
56 description = "Client side implementation of the eCard-API-Framework (BSI
57 TR-03112) and related international standards, such as ISO/IEC 24727";
58 homepage = "https://www.openecard.org/";
59 sourceProvenance = with sourceTypes; [ binaryBytecode ];
60 license = licenses.gpl3;
61 maintainers = with maintainers; [ sephalon ];
62 platforms = platforms.linux;