2019-02-26 11:45:54 +00:00
|
|
|
{ stdenv, fetchurl, unzip, runtimeShell }:
|
2010-05-11 22:19:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "openjump-1.3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "mirror://sourceforge/jump-pilot/OpenJUMP/1.3.1/openjump-1.3.1.zip";
|
2010-05-11 22:19:37 +00:00
|
|
|
sha256 = "0y4z53yx0x7rp3c8rnj028ni3gr47r35apgcpqp3jl7r2di6zgqm";
|
|
|
|
};
|
|
|
|
|
|
|
|
# ln jump.log hack: a different user will probably get a permission denied
|
|
|
|
# error. Still this is better than getting it always.
|
|
|
|
# TODO: build from source and patch this
|
|
|
|
unpackPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin;
|
2010-05-11 22:19:37 +00:00
|
|
|
cd $out; unzip $src
|
|
|
|
s=$out/bin/OpenJump
|
|
|
|
dir=$(echo $out/openjump-*)
|
|
|
|
cat >> $s << EOF
|
2019-02-26 11:45:54 +00:00
|
|
|
#!${runtimeShell}
|
2010-05-11 22:19:37 +00:00
|
|
|
cd $dir/bin
|
2019-01-15 22:41:31 +00:00
|
|
|
exec ${stdenv.shell} openjump.sh
|
2010-05-11 22:19:37 +00:00
|
|
|
EOF
|
|
|
|
chmod +x $s
|
|
|
|
ln -s /tmp/openjump.log $dir/bin/jump.log
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ":";
|
|
|
|
|
|
|
|
buildInputs = [unzip];
|
|
|
|
|
|
|
|
meta = {
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Open source Geographic Information System (GIS) written in the Java programming language";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.openjump.org/index.html";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2010-05-11 22:19:37 +00:00
|
|
|
maintainers = [stdenv.lib.maintainers.marcweber];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|