Files
nixpkgs/pkgs/by-name/op/openjump/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

68 lines
1.5 KiB
Nix

{
lib,
stdenv,
fetchurl,
unzip,
makeBinaryWrapper,
coreutils,
gawk,
which,
gnugrep,
findutils,
jre,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "openjump";
version = "2.3.0";
revision = "r5279%5Bd24616e%5D";
src = fetchurl {
url = "mirror://sourceforge/jump-pilot/OpenJUMP/${finalAttrs.version}/OpenJUMP-Portable-${finalAttrs.version}-${finalAttrs.revision}-PLUS.zip";
hash = "sha256-IO44iGnFQt/ir1WlvBrEHjdC+0DZTfJIVAJgRcxrFMI=";
};
# TODO: build from source
unpackPhase = ''
runHook preUnpack
mkdir -p $out/opt
unzip $src -d $out/opt
runHook postUnpack
'';
nativeBuildInputs = [
makeBinaryWrapper
unzip
];
installPhase = ''
runHook preInstall
dir=$(echo $out/opt/OpenJUMP-*)
chmod +x "$dir/bin/oj_linux.sh"
makeWrapper "$dir/bin/oj_linux.sh" $out/bin/OpenJump \
--set JAVA_HOME ${jre} \
--set PATH ${
lib.makeBinPath [
coreutils
gawk
which
gnugrep
findutils
]
}
runHook postInstall
'';
meta = {
description = "Open source Geographic Information System (GIS) written in the Java programming language";
homepage = "http://www.openjump.org/";
license = lib.licenses.gpl2;
mainProgram = "OpenJump";
maintainers = [ lib.maintainers.marcweber ];
teams = [ lib.teams.geospatial ];
platforms = jre.meta.platforms;
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
};
})