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