2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, jre, pcsclite, makeDesktopItem, makeWrapper }:
|
2016-10-24 23:54:18 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "1.2.4";
|
|
|
|
srcs = {
|
|
|
|
richclient = fetchurl {
|
|
|
|
url = "https://jnlp.openecard.org/richclient-${version}-20171212-0958.jar";
|
|
|
|
sha256 = "1ckhyhszp4zhfb5mn67lz603b55z814jh0sz0q5hriqzx017j7nr";
|
|
|
|
};
|
|
|
|
cifs = fetchurl {
|
|
|
|
url = "https://jnlp.openecard.org/cifs-${version}-20171212-0958.jar";
|
|
|
|
sha256 = "0rc862lx3y6sw87r1v5xjmqqpysyr1x6yqhycqmcdrwz0j3wykrr";
|
|
|
|
};
|
|
|
|
logo = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://raw.githubusercontent.com/ecsec/open-ecard/1.2.3/gui/graphics/src/main/ext/oec_logo_bg-transparent.svg";
|
2016-10-24 23:54:18 +02:00
|
|
|
sha256 = "0rpmyv10vjx2yfpm03mqliygcww8af2wnrnrppmsazdplksaxkhs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in stdenv.mkDerivation rec {
|
2021-12-01 13:46:39 +01:00
|
|
|
pname = "open-ecard";
|
|
|
|
inherit version;
|
2016-10-24 23:54:18 +02:00
|
|
|
|
|
|
|
src = srcs.richclient;
|
|
|
|
|
2021-07-20 13:39:48 +02:00
|
|
|
dontUnpack = true;
|
2016-10-24 23:54:18 +02:00
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2016-10-24 23:54:18 +02:00
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
2021-12-01 13:46:39 +01:00
|
|
|
name = pname;
|
2016-10-24 23:54:18 +02:00
|
|
|
desktopName = "Open eCard App";
|
|
|
|
genericName = "eCard App";
|
|
|
|
comment = "Client side implementation of the eCard-API-Framework";
|
|
|
|
icon = "oec_logo_bg-transparent.svg";
|
2021-12-01 13:46:39 +01:00
|
|
|
exec = pname;
|
2022-02-22 15:56:15 +01:00
|
|
|
categories = [ "Utility" "Security" ];
|
2016-10-24 23:54:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
cp ${srcs.richclient} $out/share/java/richclient-${version}.jar
|
|
|
|
cp ${srcs.cifs} $out/share/java/cifs-${version}.jar
|
|
|
|
|
|
|
|
mkdir -p $out/share/applications $out/share/pixmaps
|
|
|
|
cp $desktopItem/share/applications/* $out/share/applications
|
|
|
|
cp ${srcs.logo} $out/share/pixmaps/oec_logo_bg-transparent.svg
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
2021-12-01 13:46:39 +01:00
|
|
|
makeWrapper ${jre}/bin/java $out/bin/${pname} \
|
2016-10-24 23:54:18 +02:00
|
|
|
--add-flags "-cp $out/share/java/cifs-${version}.jar" \
|
|
|
|
--add-flags "-jar $out/share/java/richclient-${version}.jar" \
|
2021-01-15 10:19:50 +01:00
|
|
|
--suffix LD_LIBRARY_PATH ':' ${lib.getLib pcsclite}/lib
|
2016-10-24 23:54:18 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-10-24 23:54:18 +02:00
|
|
|
description = "Client side implementation of the eCard-API-Framework (BSI
|
|
|
|
TR-03112) and related international standards, such as ISO/IEC 24727";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.openecard.org/";
|
2016-10-24 23:54:18 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ sephalon ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|