openjump: add missing phase hooks

This commit is contained in:
Pol Dellaiera 2024-05-19 10:14:10 +02:00
parent c3ccab0b92
commit 1c82c619e6
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA

View File

@ -24,8 +24,10 @@ stdenv.mkDerivation (finalAttrs: {
# TODO: build from source
unpackPhase = ''
runHook preUnpack
mkdir -p $out/opt
unzip $src -d $out/opt
runHook postUnpack
'';
nativeBuildInputs = [
@ -34,6 +36,7 @@ stdenv.mkDerivation (finalAttrs: {
];
installPhase = ''
runHook preInstall
dir=$(echo $out/opt/OpenJUMP-*)
chmod +x "$dir/bin/oj_linux.sh"
@ -48,6 +51,7 @@ stdenv.mkDerivation (finalAttrs: {
findutils
]
}
runHook postInstall
'';
meta = {