summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/apps
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-03-15 13:22:33 +0100
committerJan Tojnar <jtojnar@gmail.com>2018-03-22 07:46:53 +0100
commit4ad9df103d2f697db7a15171115dff82982fc409 (patch)
tree8d9fd21c8d25b16b9a7636e4d1142c3864885dcd /pkgs/desktops/gnome-3/apps
parent7bfd055dce12f0498d5084696075a55164319cd0 (diff)
downloadnixpkgs-4ad9df103d2f697db7a15171115dff82982fc409.tar
nixpkgs-4ad9df103d2f697db7a15171115dff82982fc409.tar.gz
nixpkgs-4ad9df103d2f697db7a15171115dff82982fc409.tar.bz2
nixpkgs-4ad9df103d2f697db7a15171115dff82982fc409.tar.lz
nixpkgs-4ad9df103d2f697db7a15171115dff82982fc409.tar.xz
nixpkgs-4ad9df103d2f697db7a15171115dff82982fc409.tar.zst
nixpkgs-4ad9df103d2f697db7a15171115dff82982fc409.zip
gnome3.gnome-music: fix build
Diffstat (limited to 'pkgs/desktops/gnome-3/apps')
-rw-r--r--pkgs/desktops/gnome-3/apps/gnome-music/default.nix55
1 files changed, 33 insertions, 22 deletions
diff --git a/pkgs/desktops/gnome-3/apps/gnome-music/default.nix b/pkgs/desktops/gnome-3/apps/gnome-music/default.nix
index 1d606c35dcb..47ea6768a04 100644
--- a/pkgs/desktops/gnome-3/apps/gnome-music/default.nix
+++ b/pkgs/desktops/gnome-3/apps/gnome-music/default.nix
@@ -1,35 +1,46 @@
-{ stdenv, intltool, fetchurl, gdk_pixbuf, tracker, tracker-miners
-, libxml2, python3Packages, libnotify, wrapGAppsHook
-, pkgconfig, gtk3, glib, cairo
-, makeWrapper, itstool, gnome3, librsvg, gst_all_1 }:
-
-stdenv.mkDerivation rec {
-  name = "gnome-music-${version}";
+{ stdenv, meson, ninja, gettext, fetchurl, gdk_pixbuf, tracker
+, libxml2, python3, libnotify, wrapGAppsHook, libmediaart
+, gobjectIntrospection, gnome-online-accounts, grilo, grilo-plugins
+, pkgconfig, gtk3, glib, cairo, desktop-file-utils, appstream-glib
+, itstool, gnome3, gst_all_1 }:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "gnome-music";
   version = "3.28.0.1";
 
+  format = "other";
+
   src = fetchurl {
-    url = "mirror://gnome/sources/gnome-music/${gnome3.versionBranch version}/${name}.tar.xz";
+    url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${pname}-${version}.tar.xz";
     sha256 = "0yyysmxwmk167n8wghcbmxz73kgl1y1j9js3mgkjjqsmkd9brk65";
   };
 
-  passthru = {
-    updateScript = gnome3.updateScript { packageName = "gnome-music"; attrPath = "gnome3.gnome-music"; };
-  };
+  nativeBuildInputs = [ meson ninja gettext itstool pkgconfig libxml2 wrapGAppsHook desktop-file-utils appstream-glib gobjectIntrospection ];
+  buildInputs = with gst_all_1; [
+    gtk3 glib libmediaart gnome-online-accounts
+    gdk_pixbuf gnome3.defaultIconTheme python3
+    grilo grilo-plugins libnotify
+    gnome3.gsettings-desktop-schemas tracker
+    gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad
+  ];
+  propagatedBuildInputs = with python3.pkgs; [ pycairo dbus-python requests pygobject3 ];
 
-  propagatedUserEnvPkgs = [ gnome3.gnome-themes-standard ];
 
-  nativeBuildInputs = [ pkgconfig ];
-  buildInputs = [ gtk3 glib intltool itstool gnome3.libmediaart
-                  gdk_pixbuf gnome3.defaultIconTheme librsvg python3Packages.python
-                  gnome3.grilo gnome3.grilo-plugins gnome3.totem-pl-parser libxml2 libnotify
-                  python3Packages.pycairo python3Packages.dbus-python python3Packages.requests
-                  python3Packages.pygobject3 gst_all_1.gstreamer gst_all_1.gst-plugins-base
-                  gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad wrapGAppsHook
-                  gnome3.gsettings-desktop-schemas makeWrapper tracker tracker-miners ];
+  postPatch = ''
+    for f in meson_post_conf.py meson_post_install.py; do
+      chmod +x $f
+      patchShebangs $f
+    done
+  '';
 
-  wrapPrefixVariables = [ "PYTHONPATH" ];
+  doCheck = false;
 
-  enableParallelBuilding = true;
+  passthru = {
+    updateScript = gnome3.updateScript {
+      packageName = pname;
+      attrPath = "gnome3.${pname}";
+    };
+  };
 
   meta = with stdenv.lib; {
     homepage = https://wiki.gnome.org/Apps/Music;