mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
viking: enable on darwin (#247225)
This commit is contained in:
parent
54e6327e28
commit
148e69a477
@ -1,4 +1,5 @@
|
|||||||
{ lib, stdenv, fetchurl
|
{ lib, stdenv, fetchurl, fetchpatch
|
||||||
|
, desktopToDarwinBundle
|
||||||
, docbook_xml_dtd_45, docbook_xsl, intltool, itstool, libxslt, pkg-config, wrapGAppsHook, yelp-tools
|
, docbook_xml_dtd_45, docbook_xsl, intltool, itstool, libxslt, pkg-config, wrapGAppsHook, yelp-tools
|
||||||
, curl, gdk-pixbuf, gtk3, json-glib, libxml2
|
, curl, gdk-pixbuf, gtk3, json-glib, libxml2
|
||||||
, gpsbabel
|
, gpsbabel
|
||||||
@ -9,7 +10,7 @@
|
|||||||
, withMBTiles ? true, sqlite
|
, withMBTiles ? true, sqlite
|
||||||
, withMd5Hash ? true, nettle
|
, withMd5Hash ? true, nettle
|
||||||
, withOAuth ? true, liboauth
|
, withOAuth ? true, liboauth
|
||||||
, withRealtimeGPSTracking ? true, gpsd
|
, withRealtimeGPSTracking ? (!stdenv.isDarwin), gpsd
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -21,7 +22,16 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-lFXIlfmLwT3iS9ayNM0PHV7NwbBotMvG62ZE9hJuRaw=";
|
sha256 = "sha256-lFXIlfmLwT3iS9ayNM0PHV7NwbBotMvG62ZE9hJuRaw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ docbook_xml_dtd_45 docbook_xsl intltool itstool libxslt pkg-config wrapGAppsHook yelp-tools ];
|
patches = [
|
||||||
|
# Fix check_md5_hash.sh on macOS
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/viking-gps/viking/pull/184/commits/b0e110a3cfefea0f1874669525eb3a220dd29f9f.patch";
|
||||||
|
hash = "sha256-HdkcZMV570SXOQMIZZAti2HT0gIdF/EwQCVXBaOwpqs=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ docbook_xml_dtd_45 docbook_xsl intltool itstool libxslt pkg-config wrapGAppsHook yelp-tools ]
|
||||||
|
++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
|
||||||
|
|
||||||
buildInputs = [ curl gdk-pixbuf gtk3 json-glib libxml2 ]
|
buildInputs = [ curl gdk-pixbuf gtk3 json-glib libxml2 ]
|
||||||
++ lib.optional withGeoClue geoclue2
|
++ lib.optional withGeoClue geoclue2
|
||||||
@ -66,6 +76,6 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://sourceforge.net/projects/viking/";
|
homepage = "https://sourceforge.net/projects/viking/";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ pSub sikmir ];
|
maintainers = with maintainers; [ pSub sikmir ];
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user