udig: init at 2.0.0

+68
+66
pkgs/applications/gis/udig/default.nix
··· 1 + { stdenv, lib, fetchurl, unzip, makeWrapper, jre8, libXtst, gdal }: 2 + let 3 + pname = "udig"; 4 + version = "2.0.0"; 5 + 6 + srcs = { 7 + x86_64-linux = fetchurl { 8 + url = "http://udig.refractions.net/files/downloads/udig-${version}.linux.gtk.x86_64.zip"; 9 + sha256 = "03hj1mdd6sq0gbpa838wkccibp3l2hvnwxxf5dyc0jk3mmd94fwa"; 10 + }; 11 + x86_64-darwin = fetchurl { 12 + url = "http://udig.refractions.net/files/downloads/udig-${version}.macosx.cocoa.x86_64.zip"; 13 + sha256 = "16rcyp1zy3lr1hwjhzh6vwcgck52w66dm1qsc52gppy1f4i3f692"; 14 + }; 15 + }; 16 + src = srcs.${stdenv.hostPlatform.system}; 17 + 18 + meta = with lib; { 19 + description = "User-friendly Desktop Internet GIS"; 20 + homepage = "http://udig.refractions.net/"; 21 + license = with licenses; [ epl10 bsd3 ]; 22 + maintainers = with maintainers; [ sikmir ]; 23 + platforms = builtins.attrNames srcs; 24 + }; 25 + 26 + linux = stdenv.mkDerivation { 27 + inherit pname version src meta; 28 + 29 + nativeBuildInputs = [ unzip makeWrapper ]; 30 + 31 + installPhase = '' 32 + install -dm755 $out/bin $out/opt/udig 33 + cp -r . $out/opt/udig 34 + makeWrapper $out/opt/udig/udig.sh $out/bin/udig \ 35 + --prefix PATH : ${jre8}/bin \ 36 + --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath ([ libXtst gdal ])} 37 + ''; 38 + 39 + postFixup = '' 40 + patchelf \ 41 + --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \ 42 + $out/opt/udig/udig_internal 43 + ''; 44 + }; 45 + 46 + darwin = stdenv.mkDerivation { 47 + inherit pname version src meta; 48 + 49 + nativeBuildInputs = [ unzip makeWrapper ]; 50 + 51 + postPatch = '' 52 + substituteInPlace configuration/config.ini \ 53 + --replace "\$LOCALAPPDATA\$" "@user.home" 54 + ''; 55 + 56 + installPhase = '' 57 + mkdir -p $out/Applications/udig 58 + cp -R . $out/Applications/udig 59 + wrapProgram $out/Applications/udig/udig.app/Contents/MacOS/udig_internal \ 60 + --prefix DYLD_LIBRARY_PATH : ${lib.makeLibraryPath ([ gdal ])} 61 + ''; 62 + }; 63 + in 64 + if stdenv.isDarwin 65 + then darwin 66 + else linux
+2
pkgs/top-level/all-packages.nix
··· 25618 25618 25619 25619 typespeed = callPackage ../games/typespeed { }; 25620 25620 25621 + udig = callPackage ../applications/gis/udig { }; 25622 + 25621 25623 ufoai = callPackage ../games/ufoai { }; 25622 25624 25623 25625 ultimatestunts = callPackage ../games/ultimatestunts { };