@@ -54,19 +54,23 @@ let
5454 ++ stdenv.lib.optionals (withCD) [libcdio]
5555 ++ stdenv.lib.optionals (withCloud) [sparsehash];
5656
57+ postPatch = ''
58+ sed -i src/CMakeLists.txt \
59+ -e 's,-Werror,,g' \
60+ -e 's,-Wno-unknown-warning-option,,g' \
61+ -e 's,-Wno-unused-private-field,,g'
62+ sed -i CMakeLists.txt \
63+ -e 's,libprotobuf.a,protobuf,g'
64+ '';
65+
5766 free = stdenv.mkDerivation {
5867 name = "clementine-free-${version}";
59− inherit src patches nativeBuildInputs buildInputs;
68+ inherit src patches nativeBuildInputs buildInputs postPatch;
6069
6170 cmakeFlags = [ "-DUSE_SYSTEM_PROJECTM=ON" ];
6271
6372 enableParallelBuilding = true;
64− postPatch = ''
65− sed -i src/CMakeLists.txt \
66− -e 's,-Werror,,g' \
67− -e 's,-Wno-unknown-warning-option,,g' \
68− -e 's,-Wno-unused-private-field,,g'
69− '';
73+
7074 meta = with stdenv.lib; {
7175 homepage = http://www.clementine-player.org;
7276 description = "A multiplatform music player";
@@ -80,7 +84,7 @@ let
8084 blob = stdenv.mkDerivation {
8185 name = "clementine-blob-${version}";
8286 # Use the same patches and sources as Clementine
83− inherit src nativeBuildInputs;
87+ inherit src nativeBuildInputs postPatch;
8488
8589 patches = [
8690 ./clementine-spotify-blob.patch