Merge pull request #121493 from evils/clementine

clementine: fetchpatch to fix execution on wayland; some cleanup
This commit is contained in:
Timo Kaufmann 2021-05-21 16:32:59 +02:00 committed by GitHub
commit 7b76e495df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,49 @@
{ lib, mkDerivation, fetchFromGitHub, fetchpatch, boost, cmake, chromaprint, gettext, gst_all_1, liblastfm { lib
, qtbase, qtx11extras, qttools , mkDerivation
, taglib, fftw, glew, qjson, sqlite, libgpod, libplist, usbmuxd, libmtp , fetchFromGitHub
, libpulseaudio, gvfs, libcdio, libechonest, libspotify, pcre, projectm, protobuf , fetchpatch
, qca2, pkg-config, sparsehash, config, makeWrapper, gst_plugins }: , 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 let
withIpod = config.clementine.ipod or false; withIpod = config.clementine.ipod or false;
@ -22,9 +63,26 @@ let
patches = [ patches = [
./clementine-spotify-blob.patch ./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 = [ buildInputs = [
boost boost
@ -48,11 +106,13 @@ let
qttools qttools
sqlite sqlite
taglib taglib
alsaLib
] ]
++ lib.optionals (withIpod) [libgpod libplist usbmuxd] ++ lib.optionals (withIpod) [ libgpod libplist usbmuxd ]
++ lib.optionals (withMTP) [libmtp] ++ lib.optionals (withMTP) [ libmtp ]
++ lib.optionals (withCD) [libcdio] ++ lib.optionals (withCD) [ libcdio ]
++ lib.optionals (withCloud) [sparsehash]; ++ lib.optionals (withCloud) [ sparsehash ];
postPatch = '' postPatch = ''
sed -i src/CMakeLists.txt \ sed -i src/CMakeLists.txt \
@ -132,4 +192,5 @@ let
}; };
}; };
in free in
free