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 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 ··· 9 , withMBTiles ? true, sqlite 10 , withMd5Hash ? true, nettle 11 , withOAuth ? true, liboauth 12 - , withRealtimeGPSTracking ? true, gpsd 13 }: 14 15 stdenv.mkDerivation rec { ··· 21 sha256 = "sha256-lFXIlfmLwT3iS9ayNM0PHV7NwbBotMvG62ZE9hJuRaw="; 22 }; 23 24 - nativeBuildInputs = [ docbook_xml_dtd_45 docbook_xsl intltool itstool libxslt pkg-config wrapGAppsHook yelp-tools ]; 25 26 buildInputs = [ curl gdk-pixbuf gtk3 json-glib libxml2 ] 27 ++ lib.optional withGeoClue geoclue2 ··· 66 homepage = "https://sourceforge.net/projects/viking/"; 67 license = licenses.gpl2Plus; 68 maintainers = with maintainers; [ pSub sikmir ]; 69 - platforms = with platforms; linux; 70 }; 71 }
··· 1 + { lib, stdenv, fetchurl, fetchpatch 2 + , desktopToDarwinBundle 3 , docbook_xml_dtd_45, docbook_xsl, intltool, itstool, libxslt, pkg-config, wrapGAppsHook, yelp-tools 4 , curl, gdk-pixbuf, gtk3, json-glib, libxml2 5 , gpsbabel ··· 10 , withMBTiles ? true, sqlite 11 , withMd5Hash ? true, nettle 12 , withOAuth ? true, liboauth 13 + , withRealtimeGPSTracking ? (!stdenv.isDarwin), gpsd 14 }: 15 16 stdenv.mkDerivation rec { ··· 22 sha256 = "sha256-lFXIlfmLwT3iS9ayNM0PHV7NwbBotMvG62ZE9hJuRaw="; 23 }; 24 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; 35 36 buildInputs = [ curl gdk-pixbuf gtk3 json-glib libxml2 ] 37 ++ lib.optional withGeoClue geoclue2 ··· 76 homepage = "https://sourceforge.net/projects/viking/"; 77 license = licenses.gpl2Plus; 78 maintainers = with maintainers; [ pSub sikmir ]; 79 + platforms = with platforms; unix; 80 }; 81 }