Merge pull request #312462 from sikmir/openjump

openjump: 1.15 → 2.2.1

authored by Pol Dellaiera and committed by GitHub 577ab022 58659d00

+42 -42
-40
pkgs/applications/misc/openjump/default.nix
··· 1 - { lib, stdenv, fetchurl, unzip, makeWrapper 2 - , coreutils, gawk, which, gnugrep, findutils 3 - , jdk 4 - }: 5 - 6 - stdenv.mkDerivation { 7 - pname = "openjump"; 8 - version = "1.15"; 9 - 10 - src = fetchurl { 11 - url = "mirror://sourceforge/jump-pilot/OpenJUMP/1.15/OpenJUMP-Portable-1.15-r6241-CORE.zip"; 12 - sha256 = "12snzkv83w6khcdqzp6xahqapwp82af6c7j2q8n0lj62hk79rfgl"; 13 - }; 14 - 15 - # TODO: build from source 16 - unpackPhase = '' 17 - mkdir -p $out/bin; 18 - cd $out; unzip $src 19 - ''; 20 - 21 - nativeBuildInputs = [ makeWrapper unzip ]; 22 - 23 - installPhase = '' 24 - dir=$(echo $out/OpenJUMP-*) 25 - 26 - chmod +x $dir/bin/oj_linux.sh 27 - makeWrapper $dir/bin/oj_linux.sh $out/bin/OpenJump \ 28 - --set JAVA_HOME ${jdk.home} \ 29 - --set PATH "${coreutils}/bin:${gawk}/bin:${which}/bin:${gnugrep}/bin:${findutils}/bin" 30 - ''; 31 - 32 - meta = { 33 - description = "Open source Geographic Information System (GIS) written in the Java programming language"; 34 - homepage = "http://www.openjump.org/index.html"; 35 - license = lib.licenses.gpl2; 36 - maintainers = [lib.maintainers.marcweber]; 37 - platforms = lib.platforms.linux; 38 - mainProgram = "OpenJump"; 39 - }; 40 - }
+42
pkgs/by-name/op/openjump/package.nix
··· 1 + { lib, stdenv, fetchurl, unzip, makeWrapper 2 + , coreutils, gawk, which, gnugrep, findutils 3 + , jre 4 + }: 5 + 6 + stdenv.mkDerivation rec { 7 + pname = "openjump"; 8 + version = "2.2.1"; 9 + revision = "r5222%5B94156e5%5D"; 10 + 11 + src = fetchurl { 12 + url = "mirror://sourceforge/jump-pilot/OpenJUMP/${version}/OpenJUMP-Portable-${version}-${revision}-PLUS.zip"; 13 + hash = "sha256-+/AMmD6NDPy+2Gq1Ji5i/QWGU7FOsU+kKsWoNXcx/VI="; 14 + }; 15 + 16 + # TODO: build from source 17 + unpackPhase = '' 18 + mkdir -p $out/opt 19 + unzip $src -d $out/opt 20 + ''; 21 + 22 + nativeBuildInputs = [ makeWrapper unzip ]; 23 + 24 + installPhase = '' 25 + dir=$(echo $out/opt/OpenJUMP-*) 26 + 27 + chmod +x "$dir/bin/oj_linux.sh" 28 + makeWrapper "$dir/bin/oj_linux.sh" $out/bin/OpenJump \ 29 + --set JAVA_HOME ${jre} \ 30 + --set PATH ${lib.makeBinPath [ coreutils gawk which gnugrep findutils ]} 31 + ''; 32 + 33 + meta = { 34 + description = "Open source Geographic Information System (GIS) written in the Java programming language"; 35 + homepage = "http://www.openjump.org/"; 36 + sourceProvenance = [ lib.sourceTypes.binaryBytecode ]; 37 + license = lib.licenses.gpl2; 38 + maintainers = lib.teams.geospatial.members ++ [ lib.maintainers.marcweber ]; 39 + platforms = jre.meta.platforms; 40 + mainProgram = "OpenJump"; 41 + }; 42 + }
-2
pkgs/top-level/all-packages.nix
··· 33467 33467 openexr = openexr_3; 33468 33468 }; 33469 33469 33470 - openjump = callPackage ../applications/misc/openjump { }; 33471 - 33472 33470 open-music-kontrollers = lib.recurseIntoAttrs { 33473 33471 eteroj = callPackage ../applications/audio/open-music-kontrollers/eteroj.nix { }; 33474 33472 jit = callPackage ../applications/audio/open-music-kontrollers/jit.nix { };