adding GIS application OpenJUMP
svn path=/nixpkgs/trunk/; revision=21735
This commit is contained in:
parent
afbb01c90d
commit
75ca72cf75
39
pkgs/applications/misc/openjump/default.nix
Normal file
39
pkgs/applications/misc/openjump/default.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{stdenv, fetchurl, unzip}:
|
||||||
|
|
||||||
|
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 = ''
|
||||||
|
ensureDir $out/bin;
|
||||||
|
cd $out; unzip $src
|
||||||
|
s=$out/bin/OpenJump
|
||||||
|
dir=$(echo $out/openjump-*)
|
||||||
|
cat >> $s << EOF
|
||||||
|
#!/bin/sh
|
||||||
|
cd $dir/bin
|
||||||
|
exec /bin/sh 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 = "GPLv2";
|
||||||
|
maintainers = [stdenv.lib.maintainers.marcweber];
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -8141,6 +8141,10 @@ let
|
|||||||
inherit fetchurl stdenv ncurses;
|
inherit fetchurl stdenv ncurses;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
openjump = import ../applications/misc/openjump {
|
||||||
|
inherit stdenv fetchurl unzip;
|
||||||
|
};
|
||||||
|
|
||||||
openoffice = import ../applications/office/openoffice {
|
openoffice = import ../applications/office/openoffice {
|
||||||
inherit fetchurl stdenv pam python tcsh libxslt perl zlib libjpeg
|
inherit fetchurl stdenv pam python tcsh libxslt perl zlib libjpeg
|
||||||
expat pkgconfig freetype fontconfig libwpd libxml2 db4 sablotron
|
expat pkgconfig freetype fontconfig libwpd libxml2 db4 sablotron
|
||||||
|
Loading…
x
Reference in New Issue
Block a user