mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
bd01fad0ed
In line with the Nixpkgs manual. A mechanical change, done with this command: find pkgs -name "*.nix" | \ while read f; do \ sed -e 's/description\s*=\s*"\([a-z]\)/description = "\u\1/' -i "$f"; \ done I manually skipped some: * Descriptions starting with an abbreviation, a user name or package name * Frequently generated expressions (haskell-packages.nix)
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{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 = ''
|
|
mkdir -p $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 = stdenv.lib.licenses.gpl2;
|
|
maintainers = [stdenv.lib.maintainers.marcweber];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|