From 7bfd055dce12f0498d5084696075a55164319cd0 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 15 Mar 2018 13:22:17 +0100 Subject: [PATCH] gnome3.gnome-maps: fix build --- .../gnome-3/apps/gnome-maps/default.nix | 39 +++++++++++-------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/pkgs/desktops/gnome-3/apps/gnome-maps/default.nix b/pkgs/desktops/gnome-3/apps/gnome-maps/default.nix index 1c18b6c5c820..1c9d243c0c51 100644 --- a/pkgs/desktops/gnome-3/apps/gnome-maps/default.nix +++ b/pkgs/desktops/gnome-3/apps/gnome-maps/default.nix @@ -1,31 +1,31 @@ { stdenv, fetchurl, intltool, pkgconfig, gnome3, gtk3 , gobjectIntrospection, gdk_pixbuf, librsvg, libgweather, autoreconfHook , geoclue2, wrapGAppsHook, folks, libchamplain, gfbgraph, file, libsoup -, webkitgtk }: +, webkitgtk, gjs, libgee, geocode-glib, evolution-data-server, gnome-online-accounts }: -stdenv.mkDerivation rec { - name = "gnome-maps-${version}"; +let + pname = "gnome-maps"; version = "3.28.0"; +in stdenv.mkDerivation rec { + name = "${pname}-${version}"; src = fetchurl { - url = "mirror://gnome/sources/gnome-maps/${gnome3.versionBranch version}/${name}.tar.xz"; + url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz"; sha256 = "1imcgw67cw1qkfz8m2my0f4qmss11fbqqqi4w7afcfq9p0rplgy0"; }; - passthru = { - updateScript = gnome3.updateScript { packageName = "gnome-maps"; attrPath = "gnome3.gnome-maps"; }; - }; - doCheck = true; - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ intltool gobjectIntrospection wrapGAppsHook - gtk3 geoclue2 gnome3.gjs gnome3.libgee folks gfbgraph - gnome3.geocode-glib libchamplain file libsoup - gdk_pixbuf librsvg libgweather autoreconfHook - gnome3.gsettings-desktop-schemas gnome3.evolution-data-server - gnome3.gnome-online-accounts gnome3.defaultIconTheme - webkitgtk ]; + nativeBuildInputs = [ intltool wrapGAppsHook file autoreconfHook pkgconfig ]; + buildInputs = [ + gobjectIntrospection + gtk3 geoclue2 gjs libgee folks gfbgraph + geocode-glib libchamplain libsoup + gdk_pixbuf librsvg libgweather + gnome3.gsettings-desktop-schemas evolution-data-server + gnome-online-accounts gnome3.defaultIconTheme + webkitgtk + ]; # The .service file isn't wrapped with the correct environment # so misses GIR files when started. By re-pointing from the gjs @@ -37,6 +37,13 @@ stdenv.mkDerivation rec { "Exec=$out/bin/gnome-maps" ''; + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + attrPath = "gnome3.${pname}"; + }; + }; + meta = with stdenv.lib; { homepage = https://wiki.gnome.org/Apps/Maps; description = "A map application for GNOME 3";