diff options
author | Doron Behar <doron.behar@gmail.com> | 2020-12-21 10:26:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 10:26:55 +0200 |
commit | bcf07ee632ab108535f743642f3b9a3a1804a889 (patch) | |
tree | 6b3b5898523bb74de2abec5404fba80706ee99fd /pkgs | |
parent | 832ae4311a44ddfee300d54e17268f448b8ea8ea (diff) | |
parent | ce5d0b66b3d0a3031e9fbf14680a075bb4970576 (diff) |
Merge pull request #96046 from numinit/keystore-explorer
keystore-explorer: init at 5.4.4
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/misc/keystore-explorer/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/misc/keystore-explorer/default.nix b/pkgs/applications/misc/keystore-explorer/default.nix new file mode 100644 index 000000000000..613b96d1731c --- /dev/null +++ b/pkgs/applications/misc/keystore-explorer/default.nix @@ -0,0 +1,40 @@ +{ fetchzip, stdenv, jdk8, runtimeShell }: + +stdenv.mkDerivation rec { + version = "5.4.4"; + pname = "keystore-explorer"; + src = fetchzip { + url = "https://github.com/kaikramer/keystore-explorer/releases/download/v${version}/kse-544.zip"; + sha256 = "01kpa8g6p6vcqq9y70w5bm8jbw4kp55pbywj2zrhgjibrhgjqi0b"; + }; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + mkdir -p $out/share/keystore-explorer + cp -R icons licenses lib kse.jar $out/share/keystore-explorer/ + + # keystore-explorer's kse.sh tries to detect the path of Java by using + # Python on Darwin; just write our own start script to avoid unnecessary dependencies + cat > $out/bin/keystore-explorer <<EOF + #!${runtimeShell} + export JAVA_HOME=${jdk8.home} + exec ${jdk8}/bin/java -jar $out/share/keystore-explorer/kse.jar "\$@" + EOF + chmod +x $out/bin/keystore-explorer + + runHook postInstall + ''; + + dontStrip = true; + dontBuild = true; + dontConfigure = true; + + meta = { + description = "Open source GUI replacement for the Java command-line utilities keytool and jarsigner"; + license = stdenv.lib.licenses.gpl3Only; + maintainers = [ stdenv.lib.maintainers.numinit ]; + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8b8b051d19a7..5499d6e1ed6f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5091,6 +5091,8 @@ in keyfuzz = callPackage ../tools/inputmethods/keyfuzz { }; + keystore-explorer = callPackage ../applications/misc/keystore-explorer { }; + kibana6 = callPackage ../development/tools/misc/kibana/6.x.nix { }; kibana6-oss = callPackage ../development/tools/misc/kibana/6.x.nix { enableUnfree = false; |