viking: enable on darwin (#247225)

authored by

Nikolay Korotkiy and committed by
GitHub
148e69a4 54e6327e

+14 -4
+14 -4
pkgs/applications/misc/viking/default.nix
··· 1 - { lib, stdenv, fetchurl 1 + { lib, stdenv, fetchurl, fetchpatch 2 + , desktopToDarwinBundle 2 3 , docbook_xml_dtd_45, docbook_xsl, intltool, itstool, libxslt, pkg-config, wrapGAppsHook, yelp-tools 3 4 , curl, gdk-pixbuf, gtk3, json-glib, libxml2 4 5 , gpsbabel ··· 9 10 , withMBTiles ? true, sqlite 10 11 , withMd5Hash ? true, nettle 11 12 , withOAuth ? true, liboauth 12 - , withRealtimeGPSTracking ? true, gpsd 13 + , withRealtimeGPSTracking ? (!stdenv.isDarwin), gpsd 13 14 }: 14 15 15 16 stdenv.mkDerivation rec { ··· 21 22 sha256 = "sha256-lFXIlfmLwT3iS9ayNM0PHV7NwbBotMvG62ZE9hJuRaw="; 22 23 }; 23 24 24 - nativeBuildInputs = [ docbook_xml_dtd_45 docbook_xsl intltool itstool libxslt pkg-config wrapGAppsHook yelp-tools ]; 25 + patches = [ 26 + # Fix check_md5_hash.sh on macOS 27 + (fetchpatch { 28 + url = "https://github.com/viking-gps/viking/pull/184/commits/b0e110a3cfefea0f1874669525eb3a220dd29f9f.patch"; 29 + hash = "sha256-HdkcZMV570SXOQMIZZAti2HT0gIdF/EwQCVXBaOwpqs="; 30 + }) 31 + ]; 32 + 33 + nativeBuildInputs = [ docbook_xml_dtd_45 docbook_xsl intltool itstool libxslt pkg-config wrapGAppsHook yelp-tools ] 34 + ++ lib.optional stdenv.isDarwin desktopToDarwinBundle; 25 35 26 36 buildInputs = [ curl gdk-pixbuf gtk3 json-glib libxml2 ] 27 37 ++ lib.optional withGeoClue geoclue2 ··· 66 76 homepage = "https://sourceforge.net/projects/viking/"; 67 77 license = licenses.gpl2Plus; 68 78 maintainers = with maintainers; [ pSub sikmir ]; 69 - platforms = with platforms; linux; 79 + platforms = with platforms; unix; 70 80 }; 71 81 }