Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keystore-explorer: init at 5.4.4 #96046

Merged
merged 1 commit into from
Dec 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions pkgs/applications/misc/keystore-explorer/default.nix
Original file line number Diff line number Diff line change
@@ -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;
numinit marked this conversation as resolved.
Show resolved Hide resolved
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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down