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