tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
viking: 1.8 → 1.9
Nikolay Korotkiy
4 years ago
93a484f7
83c63225
+33
-38
2 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
viking
default.nix
top-level
all-packages.nix
+32
-35
pkgs/applications/misc/viking/default.nix
···
1
1
-
{ fetchurl, fetchpatch, lib, stdenv, makeWrapper
2
2
-
, pkg-config, intltool, gettext, gtk2, expat, curl
3
3
-
, gpsd, bc, file, gnome-doc-utils, libexif, libxml2, libxslt, scrollkeeper
4
4
-
, docbook_xml_dtd_412, gexiv2, gpsbabel, expect
1
1
+
{ lib, stdenv, fetchurl
2
2
+
, docbook_xml_dtd_45, docbook_xsl, intltool, itstool, libxslt, pkg-config, wrapGAppsHook, yelp-tools
3
3
+
, curl, gdk-pixbuf, gtk3, json-glib, libxml2
4
4
+
, gpsbabel
5
5
+
, withGeoClue ? true, geoclue2
6
6
+
, withGeoTag ? true, gexiv2
7
7
+
, withMagic ? true, file
5
8
, withMapnik ? false, mapnik
6
9
, withMBTiles ? true, sqlite
7
7
-
, withOAuth ? true, liboauth
8
10
, withMd5Hash ? true, nettle
9
9
-
, withGeoClue ? true, geoclue2 }:
11
11
+
, withOAuth ? true, liboauth
12
12
+
, withRealtimeGPSTracking ? true, gpsd
13
13
+
}:
10
14
11
15
stdenv.mkDerivation rec {
12
16
pname = "viking";
13
13
-
version = "1.8";
17
17
+
version = "1.9";
14
18
15
19
src = fetchurl {
16
16
-
url = "mirror://sourceforge/viking/viking/viking-${version}.tar.bz2";
17
17
-
sha256 = "1a0g0fbj4q5s9p8fv0mqvxws10q3naj81l72sz30vvqpbz6vqp45";
20
20
+
url = "mirror://sourceforge/viking/viking-${version}.tar.bz2";
21
21
+
sha256 = "0fybpy6k0vmjp231h5ckysl3c0rcnh2afznijwq6y78j4hywyjpy";
18
22
};
19
23
20
20
-
patches = [
21
21
-
# Fix build without mapnik and sqlite https://github.com/viking-gps/viking/pull/79
22
22
-
(fetchpatch {
23
23
-
url = "https://github.com/viking-gps/viking/commit/995feefcb97bdb1590ed018224cf47ce197fe0c1.patch";
24
24
-
sha256 = "1xb0b76kg690fag9mw3yfj5k766jmqp1sm8q4f29n1h3nz5g8izd";
25
25
-
})
26
26
-
];
24
24
+
nativeBuildInputs = [ docbook_xml_dtd_45 docbook_xsl intltool itstool libxslt pkg-config wrapGAppsHook yelp-tools ];
27
25
28
28
-
nativeBuildInputs = [ pkg-config makeWrapper ];
29
29
-
buildInputs = [ intltool gettext gtk2 expat curl gpsd bc file gnome-doc-utils
30
30
-
libexif libxml2 libxslt scrollkeeper docbook_xml_dtd_412 gexiv2
31
31
-
] ++ lib.optional withMapnik mapnik
26
26
+
buildInputs = [ curl gdk-pixbuf gtk3 json-glib libxml2 ]
32
27
++ lib.optional withGeoClue geoclue2
28
28
+
++ lib.optional withGeoTag gexiv2
29
29
+
++ lib.optional withMagic file
30
30
+
++ lib.optional withMapnik mapnik
31
31
+
++ lib.optional withMBTiles sqlite
33
32
++ lib.optional withMd5Hash nettle
34
34
-
++ lib.optional withOAuth liboauth
35
35
-
++ lib.optional withMBTiles sqlite;
33
33
+
++ lib.optional withOAuth liboauth
34
34
+
++ lib.optional withRealtimeGPSTracking gpsd;
36
35
37
36
configureFlags = [
38
38
-
"--disable-scrollkeeper"
39
39
-
(lib.enableFeature withMapnik "mapnik")
40
37
(lib.enableFeature withGeoClue "geoclue")
38
38
+
(lib.enableFeature withGeoTag "geotag")
39
39
+
(lib.enableFeature withMagic "magic")
40
40
+
(lib.enableFeature withMapnik "mapnik")
41
41
+
(lib.enableFeature withMBTiles "mbtiles")
41
42
(lib.enableFeature withMd5Hash "nettle")
42
42
-
(lib.enableFeature withOAuth "oauth")
43
43
-
(lib.enableFeature withMBTiles "mbtiles")
43
43
+
(lib.enableFeature withOAuth "oauth")
44
44
+
(lib.enableFeature withRealtimeGPSTracking "realtime-gps-tracking")
44
45
];
45
46
46
46
-
preBuild = ''
47
47
-
sed -i help/Makefile \
48
48
-
-e 's|--noout|--noout --nonet --path "${scrollkeeper}/share/xml/scrollkeeper/dtds"|g'
49
49
-
sed -i help/Makefile -e 's|--postvalid||g'
50
50
-
'';
47
47
+
hardeningDisable = [ "format" ];
51
48
52
49
doCheck = true;
53
50
54
54
-
postInstall = ''
55
55
-
wrapProgram $out/bin/viking \
56
56
-
--prefix PATH : "${gpsbabel}/bin" \
57
57
-
--prefix PATH : "${expect}/bin"
51
51
+
preFixup = ''
52
52
+
gappsWrapperArgs+=(
53
53
+
--prefix PATH : ${lib.makeBinPath [ gpsbabel ]}
54
54
+
)
58
55
'';
59
56
60
57
meta = with lib; {
+1
-3
pkgs/top-level/all-packages.nix
···
9012
9012
inherit lib udisks2 python3;
9013
9013
};
9014
9014
9015
9015
-
viking = callPackage ../applications/misc/viking {
9016
9016
-
inherit (gnome2) scrollkeeper;
9017
9017
-
};
9015
9015
+
viking = callPackage ../applications/misc/viking { };
9018
9016
9019
9017
vim-vint = callPackage ../development/tools/vim-vint { };
9020
9018