Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4965950365c8
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 947ace2a1660
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Feb 4, 2020

  1. viking: 1.7 -> 1.8

    sikmir committed Feb 4, 2020
    Copy the full SHA
    a1caeda View commit details

Commits on Feb 7, 2020

  1. Merge pull request #79188 from sikmir/viking

    viking: 1.7 -> 1.8
    marsam authored Feb 7, 2020
    Copy the full SHA
    947ace2 View commit details
Showing with 33 additions and 10 deletions.
  1. +33 −10 pkgs/applications/misc/viking/default.nix
43 changes: 33 additions & 10 deletions pkgs/applications/misc/viking/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,47 @@
{ fetchurl, stdenv, makeWrapper, pkgconfig, intltool, gettext, gtk2, expat, curl
{ fetchurl, fetchpatch, stdenv, makeWrapper
, pkgconfig, intltool, gettext, gtk2, expat, curl
, gpsd, bc, file, gnome-doc-utils, libexif, libxml2, libxslt, scrollkeeper
, docbook_xml_dtd_412, gexiv2, sqlite, gpsbabel, expect
, geoclue2, liboauth, nettle }:
, docbook_xml_dtd_412, gexiv2, gpsbabel, expect
, withMapnik ? false, mapnik
, withMBTiles ? true, sqlite
, withOAuth ? true, liboauth
, withMd5Hash ? true, nettle
, withGeoClue ? true, geoclue2 }:

stdenv.mkDerivation rec {
pname = "viking";
version = "1.7";
version = "1.8";

src = fetchurl {
url = "mirror://sourceforge/viking/viking/viking-${version}.tar.bz2";
sha256 = "092q2dv0rcz12nh2js1z1ralib1553dmzy9pdrvz9nv2vf61wybw";
sha256 = "1a0g0fbj4q5s9p8fv0mqvxws10q3naj81l72sz30vvqpbz6vqp45";
};

patches = [
# Fix build without mapnik and sqlite https://github.com/viking-gps/viking/pull/79
(fetchpatch {
url = "https://github.com/viking-gps/viking/commit/995feefcb97bdb1590ed018224cf47ce197fe0c1.patch";
sha256 = "1xb0b76kg690fag9mw3yfj5k766jmqp1sm8q4f29n1h3nz5g8izd";
})
];

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ makeWrapper intltool gettext gtk2 expat curl gpsd bc file gnome-doc-utils
libexif libxml2 libxslt scrollkeeper docbook_xml_dtd_412 gexiv2 sqlite
geoclue2 liboauth nettle
];
libexif libxml2 libxslt scrollkeeper docbook_xml_dtd_412 gexiv2
] ++ stdenv.lib.optional withMapnik mapnik
++ stdenv.lib.optional withGeoClue geoclue2
++ stdenv.lib.optional withMd5Hash nettle
++ stdenv.lib.optional withOAuth liboauth
++ stdenv.lib.optional withMBTiles sqlite;

configureFlags = [ "--disable-scrollkeeper --disable-mapnik" ];
configureFlags = [
"--disable-scrollkeeper"
(stdenv.lib.enableFeature withMapnik "mapnik")
(stdenv.lib.enableFeature withGeoClue "geoclue")
(stdenv.lib.enableFeature withMd5Hash "nettle")
(stdenv.lib.enableFeature withOAuth "oauth")
(stdenv.lib.enableFeature withMBTiles "mbtiles")
];

preBuild = ''
sed -i help/Makefile \
@@ -45,7 +68,7 @@ stdenv.mkDerivation rec {
'';
homepage = https://sourceforge.net/projects/viking/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ pSub ];
maintainers = with maintainers; [ pSub sikmir ];
platforms = with platforms; linux;
};
}