aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/audio/clementine/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/audio/clementine/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/audio/clementine/default.nix41
1 files changed, 17 insertions, 24 deletions
diff --git a/nixpkgs/pkgs/applications/audio/clementine/default.nix b/nixpkgs/pkgs/applications/audio/clementine/default.nix
index 15d0f92b76a..0c1690f1462 100644
--- a/nixpkgs/pkgs/applications/audio/clementine/default.nix
+++ b/nixpkgs/pkgs/applications/audio/clementine/default.nix
@@ -1,4 +1,5 @@
-{ stdenv, fetchFromGitHub, fetchpatch, boost, cmake, chromaprint, gettext, gst_all_1, liblastfm
+{ stdenv, mkDerivation, fetchFromGitHub, fetchpatch, boost, cmake, chromaprint, gettext, gst_all_1, liblastfm
+, qtbase, qtx11extras
, taglib, fftw, glew, qjson, sqlite, libgpod, libplist, usbmuxd, libmtp
, libpulseaudio, gvfs, libcdio, libechonest, libspotify, pcre, projectm, protobuf
, qca2, pkgconfig, sparsehash, config, makeWrapper, gst_plugins }:
@@ -9,30 +10,17 @@ let
withCD = config.clementine.cd or true;
withCloud = config.clementine.cloud or true;
- version = "1.3.1";
+ version = "1.4.0rc1";
src = fetchFromGitHub {
owner = "clementine-player";
repo = "Clementine";
rev = version;
- sha256 = "0i3jkfs8dbfkh47jq3cnx7pip47naqg7w66vmfszk4d8vj37j62j";
+ sha256 = "1rqk0hrsn8f8bjk0j0vq1af0ygy6xx7qi9fw0jjw2cmj6kzckyi2";
};
patches = [
./clementine-spotify-blob.patch
- # Required so as to avoid adding libspotify as a build dependency (as it is
- # unfree and thus would prevent us from having a free package).
- ./clementine-spotify-blob-remove-from-build.patch
- (fetchpatch {
- # Fix w/gcc7
- url = "https://github.com/clementine-player/Clementine/pull/5630.patch";
- sha256 = "0px7xp1m4nvrncx8sga1qlxppk562wrk2qqk19iiry84nxg20mk4";
- })
- (fetchpatch {
- # Fixes compilation with chromaprint >= 1.4
- url = "https://github.com/clementine-player/Clementine/commit/d3ea0c8482dfd3f6264a30cfceb456076d76e6cd.patch";
- sha256 = "1ifrs5aqdzw16jbnf0z1ilir20chdnr9k5n21r99miq9hzjpbh12";
- })
];
nativeBuildInputs = [ cmake pkgconfig ];
@@ -54,6 +42,8 @@ let
protobuf
qca2
qjson
+ qtbase
+ qtx11extras
sqlite
taglib
]
@@ -71,7 +61,7 @@ let
-e 's,libprotobuf.a,protobuf,g'
'';
- free = stdenv.mkDerivation {
+ free = mkDerivation {
pname = "clementine-free";
inherit version;
inherit src patches nativeBuildInputs postPatch;
@@ -79,7 +69,14 @@ let
# gst_plugins needed for setup-hooks
buildInputs = buildInputs ++ [ makeWrapper ] ++ gst_plugins;
- cmakeFlags = [ "-DUSE_SYSTEM_PROJECTM=ON" ];
+ preConfigure = ''
+ rm -rf ext/{,lib}clementine-spotifyblob
+ '';
+
+ cmakeFlags = [
+ "-DUSE_SYSTEM_PROJECTM=ON"
+ "-DSPOTIFY_BLOB=OFF"
+ ];
enableParallelBuilding = true;
@@ -100,15 +97,11 @@ let
};
# Unfree Spotify blob for Clementine
- unfree = stdenv.mkDerivation {
+ unfree = mkDerivation {
pname = "clementine-blob";
inherit version;
# Use the same patches and sources as Clementine
- inherit src nativeBuildInputs postPatch;
-
- patches = [
- ./clementine-spotify-blob.patch
- ];
+ inherit src nativeBuildInputs patches postPatch;
buildInputs = buildInputs ++ [ libspotify makeWrapper ];
# Only build and install the Spotify blob