blob: e537180686cd6d486e8da6dae39154d6a51a8654 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ stdenv, fetchurl, unzip, runtimeShell }:
stdenv.mkDerivation {
name = "openjump-1.3.1";
src = fetchurl {
url = "mirror://sourceforge/jump-pilot/OpenJUMP/1.3.1/openjump-1.3.1.zip";
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 = ''
mkdir -p $out/bin;
cd $out; unzip $src
s=$out/bin/OpenJump
dir=$(echo $out/openjump-*)
cat >> $s << EOF
#!${runtimeShell}
cd $dir/bin
exec ${stdenv.shell} openjump.sh
EOF
chmod +x $s
ln -s /tmp/openjump.log $dir/bin/jump.log
'';
installPhase = ":";
buildInputs = [unzip];
meta = {
description = "Open source Geographic Information System (GIS) written in the Java programming language";
homepage = "http://www.openjump.org/index.html";
license = stdenv.lib.licenses.gpl2;
maintainers = [stdenv.lib.maintainers.marcweber];
platforms = stdenv.lib.platforms.linux;
};
}
|