git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #39439 from Ma27/fix-free-clementine-plugin-path

clementine: each output should hav a wrapped `GST_PLUGIN_SYSTEM_PATH_1_0`

commit42c87d4716ebab88db1e7bd388dc24c37689c73d authorMatthew Justin Bauer <mjbauer95@gmail.com> dateWed 25 Apr 2018, 00:41 (9 years ago) parent304c3eba4ba8c6
1 file changed+9−3
pkgs/applications/audio/clementine/default.nix+9−3
pkgs/applications/audio/clementine/default.nix+9−3
@@ -70,7 +70,9 @@ let
7070
7171 free = stdenv.mkDerivation {
7272 name = "clementine-free-${version}";
73− inherit src patches nativeBuildInputs buildInputs postPatch;
73+ inherit src patches nativeBuildInputs postPatch;
74+
75+ buildInputs = buildInputs ++ [ makeWrapper ];
7476
7577 cmakeFlags = [ "-DUSE_SYSTEM_PROJECTM=ON" ];
7678
@@ -78,6 +80,11 @@ let
7880
7981 passthru.unfree = unfree;
8082
83+ postInstall = ''
84+ wrapProgram $out/bin/clementine \
85+ --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
86+ '';
87+
8188 meta = with stdenv.lib; {
8289 homepage = http://www.clementine-player.org;
8390 description = "A multiplatform music player";
@@ -108,8 +115,7 @@ let
108115 rmdir $out/bin
109116
110117 makeWrapper ${free}/bin/clementine $out/bin/clementine \
111− --set CLEMENTINE_SPOTIFYBLOB $out/libexec/clementine \
112− --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
118+ --set CLEMENTINE_SPOTIFYBLOB $out/libexec/clementine
113119
114120 mkdir -p $out/share
115121 for dir in applications icons kde4; do