diff options
Diffstat (limited to 'pkgs/athena-bccr/firmador.nix')
| -rw-r--r-- | pkgs/athena-bccr/firmador.nix | 85 |
1 files changed, 43 insertions, 42 deletions
diff --git a/pkgs/athena-bccr/firmador.nix b/pkgs/athena-bccr/firmador.nix index d280b56..eef413b 100644 --- a/pkgs/athena-bccr/firmador.nix +++ b/pkgs/athena-bccr/firmador.nix @@ -1,57 +1,58 @@ -{ - fetchgit, - lib, - makeWrapper, - maven, - openjdk, - wrapGAppsHook, - libasep11 ? null, -}: let +{ fetchgit +, lib +, makeWrapper +, maven +, openjdk +, wrapGAppsHook + +, libasep11 ? null +}: +let jdk = openjdk.override { enableJavaFX = true; }; version = "1.9.8"; in - maven.buildMavenPackage { - pname = "firmador"; - inherit version; - - src = fetchgit { - url = "https://codeberg.org/firmador/firmador"; - rev = version; - hash = "sha256-xdiVPjihRADPK4nG+WQHWsDzVYLCeN6ouQ6SDtjf1qQ="; - }; +maven.buildMavenPackage { + pname = "firmador"; + inherit version; + + src = fetchgit { + url = "https://codeberg.org/firmador/firmador"; + rev = version; + hash = "sha256-xdiVPjihRADPK4nG+WQHWsDzVYLCeN6ouQ6SDtjf1qQ="; + }; - patches = [ - ./0001-Remove-CheckUpdatePlugin-from-default-list.patch - ]; + patches = [ + ./0001-Remove-CheckUpdatePlugin-from-default-list.patch + ]; - mvnHash = "sha256-h1zoStTgaE7toWWKq0Y0ahOORyltChwjmaMYjLgs1VE="; + mvnHash = "sha256-h1zoStTgaE7toWWKq0Y0ahOORyltChwjmaMYjLgs1VE="; - nativeBuildInputs = [ - makeWrapper - wrapGAppsHook - ]; + nativeBuildInputs = [ + makeWrapper + wrapGAppsHook + ]; - postPatch = lib.optionalString (libasep11 != null) '' - sed -i 's@/usr/lib/x64-athena/libASEP11.so@${libasep11}@g' src/main/java/cr/libre/firmador/CRSigner.java - ''; + postPatch = lib.optionalString (libasep11 != null) '' + sed -i 's@/usr/lib/x64-athena/libASEP11.so@${libasep11}@g' src/main/java/cr/libre/firmador/CRSigner.java + ''; - installPhase = '' - runHook preInstall + installPhase = '' + runHook preInstall - mkdir -p $out/bin $out/share/java - install -Dm644 target/firmador.jar $out/share/java + mkdir -p $out/bin $out/share/java + install -Dm644 target/firmador.jar $out/share/java - makeWrapper ${jdk}/bin/java $out/bin/firmador \ - --add-flags "-jar $out/share/java/firmador.jar" + makeWrapper ${jdk}/bin/java $out/bin/firmador \ + --add-flags "-jar $out/share/java/firmador.jar" - runHook postInstall - ''; + runHook postInstall + ''; - meta = { - homepage = "https://firmador.libre.cr"; - license = lib.licenses.gpl3Plus; - }; - } + meta = { + homepage = "https://firmador.libre.cr"; + license = lib.licenses.gpl3Plus; + }; +} |
