summaryrefslogtreecommitdiff
path: root/pkgs/applications/audio/clementine/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/audio/clementine/default.nix')
-rw-r--r--pkgs/applications/audio/clementine/default.nix84
1 files changed, 73 insertions, 11 deletions
diff --git a/pkgs/applications/audio/clementine/default.nix b/pkgs/applications/audio/clementine/default.nix
index b84b4e6aa9a4..4184f0eea8cb 100644
--- a/pkgs/applications/audio/clementine/default.nix
+++ b/pkgs/applications/audio/clementine/default.nix
@@ -1,8 +1,49 @@
-{ lib, 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, pkg-config, sparsehash, config, makeWrapper, gst_plugins }:
+{ lib
+, mkDerivation
+, fetchFromGitHub
+, fetchpatch
+, boost
+, cmake
+, chromaprint
+, gettext
+, gst_all_1
+, liblastfm
+, qtbase
+, qtx11extras
+, qttools
+, taglib
+, fftw
+, glew
+, qjson
+, sqlite
+, libgpod
+, libplist
+, usbmuxd
+, libmtp
+, libpulseaudio
+, gvfs
+, libcdio
+, libechonest
+, libspotify
+, pcre
+, projectm
+, protobuf
+, qca2
+, pkg-config
+, sparsehash
+, config
+, makeWrapper
+, gst_plugins
+
+, util-linux
+, libunwind
+, libselinux
+, elfutils
+, libsepol
+, orc
+
+, alsaLib
+}:
let
withIpod = config.clementine.ipod or false;
@@ -22,9 +63,26 @@ let
patches = [
./clementine-spotify-blob.patch
+ (fetchpatch {
+ # "short-term" fix for execution on wayland (1.4.0rc1-131-g2179027a6)
+ # for https://github.com/clementine-player/Clementine/issues/6587
+ url = "https://github.com/clementine-player/Clementine/commit/2179027a6d97530c857e43be873baacd696ff332.patch";
+ sha256 = "0344bfcyvjim5ph8w4km6zkg96rj5g9ybp9x14qgyw2gkdksimn6";
+ })
];
- nativeBuildInputs = [ cmake pkg-config makeWrapper ];
+ nativeBuildInputs = [
+ cmake
+ pkg-config
+ makeWrapper
+
+ util-linux
+ libunwind
+ libselinux
+ elfutils
+ libsepol
+ orc
+ ];
buildInputs = [
boost
@@ -45,13 +103,16 @@ let
qjson
qtbase
qtx11extras
+ qttools
sqlite
taglib
+
+ alsaLib
]
- ++ lib.optionals (withIpod) [libgpod libplist usbmuxd]
- ++ lib.optionals (withMTP) [libmtp]
- ++ lib.optionals (withCD) [libcdio]
- ++ lib.optionals (withCloud) [sparsehash];
+ ++ lib.optionals (withIpod) [ libgpod libplist usbmuxd ]
+ ++ lib.optionals (withMTP) [ libmtp ]
+ ++ lib.optionals (withCD) [ libcdio ]
+ ++ lib.optionals (withCloud) [ sparsehash ];
postPatch = ''
sed -i src/CMakeLists.txt \
@@ -131,4 +192,5 @@ let
};
};
-in free
+in
+free