about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorJascha Geerds <jg@ekby.de>2015-09-26 20:01:08 +0200
committerJascha Geerds <jg@ekby.de>2015-09-26 20:21:32 +0200
commit93adb22c6faaaa3100882409daf11877ea672885 (patch)
tree4abaed71c1ec23fcb90751ad4a82d75caa700e9a /pkgs/applications/audio
parentf168f6907bd10f78c9cb0b6f85c88d8ad7ac7ff5 (diff)
downloadnixlib-93adb22c6faaaa3100882409daf11877ea672885.tar
nixlib-93adb22c6faaaa3100882409daf11877ea672885.tar.gz
nixlib-93adb22c6faaaa3100882409daf11877ea672885.tar.bz2
nixlib-93adb22c6faaaa3100882409daf11877ea672885.tar.lz
nixlib-93adb22c6faaaa3100882409daf11877ea672885.tar.xz
nixlib-93adb22c6faaaa3100882409daf11877ea672885.tar.zst
nixlib-93adb22c6faaaa3100882409daf11877ea672885.zip
pithos: Use wrap-gapps-hook
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/pithos/default.nix11
1 files changed, 4 insertions, 7 deletions
diff --git a/pkgs/applications/audio/pithos/default.nix b/pkgs/applications/audio/pithos/default.nix
index 90290453456c..e78aab2ab9b9 100644
--- a/pkgs/applications/audio/pithos/default.nix
+++ b/pkgs/applications/audio/pithos/default.nix
@@ -1,4 +1,5 @@
-{ fetchFromGitHub, stdenv, pythonPackages, gtk3, gobjectIntrospection, libnotify, gst_all_1 }:
+{ fetchFromGitHub, stdenv, pythonPackages, gtk3, gobjectIntrospection, libnotify
+, gst_all_1, wrapGAppsHook }:
 
 pythonPackages.buildPythonPackage rec {
   name = "pithos-${version}";
@@ -15,17 +16,13 @@ pythonPackages.buildPythonPackage rec {
     substituteInPlace setup.py --replace "/usr/share" "$out/share"
   '';
 
+  buildInputs = [ wrapGAppsHook ];
+
   propagatedBuildInputs =
     [ gtk3 gobjectIntrospection libnotify ] ++
     (with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad ]) ++
     (with pythonPackages; [ pygobject3 pylast ]);
 
-  postInstall = ''
-    wrapProgram "$out/bin/pithos" \
-      --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0" \
-      --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH"
-  '';
-
   meta = with stdenv.lib; {
     description = "Pandora Internet Radio player for GNOME";
     homepage = https://pithos.github.io/;