2021-01-15 05:42:41 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, makeWrapper
|
2020-07-31 17:26:07 +01:00
|
|
|
, coreutils, gawk, which, gnugrep, findutils
|
|
|
|
, jdk
|
|
|
|
}:
|
2010-05-11 23:19:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2020-07-31 17:26:07 +01:00
|
|
|
pname = "openjump";
|
|
|
|
version = "1.15";
|
2010-05-11 23:19:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-07-31 17:26:07 +01:00
|
|
|
url = "mirror://sourceforge/jump-pilot/OpenJUMP/1.15/OpenJUMP-Portable-1.15-r6241-CORE.zip";
|
|
|
|
sha256 = "12snzkv83w6khcdqzp6xahqapwp82af6c7j2q8n0lj62hk79rfgl";
|
2010-05-11 23:19:37 +01:00
|
|
|
};
|
|
|
|
|
2020-07-31 17:26:07 +01:00
|
|
|
# TODO: build from source
|
2010-05-11 23:19:37 +01:00
|
|
|
unpackPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin;
|
2010-05-11 23:19:37 +01:00
|
|
|
cd $out; unzip $src
|
|
|
|
'';
|
|
|
|
|
2020-07-31 17:26:07 +01:00
|
|
|
buildInputs = [unzip makeWrapper];
|
2010-05-11 23:19:37 +01:00
|
|
|
|
2020-07-31 17:26:07 +01:00
|
|
|
installPhase = ''
|
|
|
|
dir=$(echo $out/OpenJUMP-*)
|
|
|
|
|
|
|
|
chmod +x $dir/bin/oj_linux.sh
|
|
|
|
makeWrapper $dir/bin/oj_linux.sh $out/bin/OpenJump \
|
|
|
|
--set JAVA_HOME ${jdk.home} \
|
|
|
|
--set PATH "${coreutils}/bin:${gawk}/bin:${which}/bin:${gnugrep}/bin:${findutils}/bin"
|
|
|
|
'';
|
2010-05-11 23:19:37 +01:00
|
|
|
|
|
|
|
meta = {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Open source Geographic Information System (GIS) written in the Java programming language";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.openjump.org/index.html";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [lib.maintainers.marcweber];
|
|
|
|
platforms = lib.platforms.linux;
|
2010-05-11 23:19:37 +01:00
|
|
|
};
|
|
|
|
}
|