@@ -1,7 +1,7 @@
1−{ stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst-plugins-base
2−, liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist
3−, usbmuxd, libmtp, gvfs, libcdio, libspotify, protobuf, qca2, pkgconfig
4−, sparsehash, config, makeWrapper, runCommand, gst_plugins }:
1+{ stdenv, fetchurl, boost, cmake, chromaprint, gettext, gst_all_1, liblastfm
2+, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist, usbmuxd, libmtp
3+, libpulseaudio, gvfs, libcdio, libechonest, libspotify, pcre, protobuf
4+, qca2, pkgconfig, sparsehash, config, makeWrapper, runCommand, gst_plugins }:
55
66let
77 withSpotify = config.clementine.spotify or false;
@@ -10,31 +10,36 @@ let
1010 withCD = config.clementine.cd or true;
1111 withCloud = config.clementine.cloud or true;
1212
13− version = "1.2.3";
13+ version = "1.3.1";
1414
1515 exeName = "clementine";
1616
1717 src = fetchurl {
18− url = https://github.com/clementine-player/Clementine/archive/1.2.3.tar.gz;
19− sha256 = "1gx1109i4pylz6x7gvp4rdzc6dvh0w6in6hfbygw01d08l26bxbx";
18+ url = https://github.com/clementine-player/Clementine/archive/1.3.1.tar.gz;
19+ sha256 = "0z7k73wyz54c3020lb6x2dgw0vz4ri7wcl3vs03qdj5pk8d971gq";
2020 };
2121
2222 patches = [
23− ./clementine-1.2.1-include-paths.patch
24− ./clementine-dbus-namespace.patch
2523 ./clementine-spotify-blob.patch
24+ # Required so as to avoid adding libspotify as a build dependency (as it is
25+ # unfree and thus would prevent us from having a free package).
26+ ./clementine-spotify-blob-remove-from-build.patch
2627 ];
2728
2829 buildInputs = [
2930 boost
3031 cmake
32+ chromaprint
3133 fftw
3234 gettext
3335 glew
34− gst-plugins-base
35− gstreamer
36+ gst_all_1.gst-plugins-base
37+ gst_all_1.gstreamer
3638 gvfs
39+ libechonest
3740 liblastfm
41+ libpulseaudio
42+ pcre
3843 pkgconfig
3944 protobuf
4045 qca2
@@ -71,7 +76,12 @@ let
7176 blob = stdenv.mkDerivation {
7277 name = "clementine-blob-${version}";
7378 # Use the same patches and sources as Clementine
74− inherit patches src;
79+ inherit src;
80+
81+ patches = [
82+ ./clementine-spotify-blob.patch
83+ ];
84+
7585 buildInputs = buildInputs ++ [ libspotify ];
7686 # Only build and install the Spotify blob
7787 preBuild = ''
@@ -119,7 +129,7 @@ runCommand "clementine-${version}"
119129 mkdir -p $out/bin
120130 makeWrapper "$free/bin/${exeName}" "$out/bin/${exeName}" \
121131 ${optionalString withSpotify "--set CLEMENTINE_SPOTIFYBLOB \"$blob/libexec/clementine\""} \
122− --prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
132+ --prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
123133
124134 mkdir -p $out/share
125135 for dir in applications icons kde4; do