summary refs log tree commit diff
path: root/pkgs/applications/audio/clementine
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2018-04-24 23:27:45 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2018-04-24 23:27:45 +0200
commita4ba8c654403c1f1e6ba006533e3306dd32a638e (patch)
tree01cf9f2e0e2d6078a76f142941bb2940cdbe7f10 /pkgs/applications/audio/clementine
parentf54a9994e3fd6e3942b3c761615f106eca2d8965 (diff)
downloadnixpkgs-a4ba8c654403c1f1e6ba006533e3306dd32a638e.tar
nixpkgs-a4ba8c654403c1f1e6ba006533e3306dd32a638e.tar.gz
nixpkgs-a4ba8c654403c1f1e6ba006533e3306dd32a638e.tar.bz2
nixpkgs-a4ba8c654403c1f1e6ba006533e3306dd32a638e.tar.lz
nixpkgs-a4ba8c654403c1f1e6ba006533e3306dd32a638e.tar.xz
nixpkgs-a4ba8c654403c1f1e6ba006533e3306dd32a638e.tar.zst
nixpkgs-a4ba8c654403c1f1e6ba006533e3306dd32a638e.zip
clementine: each output should hav a wrapped `GST_PLUGIN_SYSTEM_PATH_1_0`
see https://github.com/NixOS/nixpkgs/commit/ef5e212d20959d4d883df2ff2a54e5ef4b2512a5#r28723596

/cc @jtojnar
Diffstat (limited to 'pkgs/applications/audio/clementine')
-rw-r--r--pkgs/applications/audio/clementine/default.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/applications/audio/clementine/default.nix b/pkgs/applications/audio/clementine/default.nix
index b8ff3daec60..6379975e951 100644
--- a/pkgs/applications/audio/clementine/default.nix
+++ b/pkgs/applications/audio/clementine/default.nix
@@ -70,7 +70,9 @@ let
 
   free = stdenv.mkDerivation {
     name = "clementine-free-${version}";
-    inherit src patches nativeBuildInputs buildInputs postPatch;
+    inherit src patches nativeBuildInputs postPatch;
+
+    buildInputs = buildInputs ++ [ makeWrapper ];
 
     cmakeFlags = [ "-DUSE_SYSTEM_PROJECTM=ON" ];
 
@@ -78,6 +80,11 @@ let
 
     passthru.unfree = unfree;
 
+    postInstall = ''
+      wrapProgram $out/bin/clementine \
+        --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
+    '';
+
     meta = with stdenv.lib; {
       homepage = http://www.clementine-player.org;
       description = "A multiplatform music player";
@@ -108,8 +115,7 @@ let
       rmdir $out/bin
 
       makeWrapper ${free}/bin/clementine $out/bin/clementine \
-        --set CLEMENTINE_SPOTIFYBLOB $out/libexec/clementine \
-        --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
+        --set CLEMENTINE_SPOTIFYBLOB $out/libexec/clementine
 
       mkdir -p $out/share
       for dir in applications icons kde4; do