clementineUnfree: remove
This commit is contained in:
parent
645f612c40
commit
70c42db535
3 changed files with 22 additions and 88 deletions
|
@ -1,13 +0,0 @@
|
|||
diff --git a/src/internet/spotify/spotifyservice.cpp b/src/internet/spotify/spotifyservice.cpp
|
||||
index 88c7383..6e0893c 100644
|
||||
--- a/src/internet/spotify/spotifyservice.cpp
|
||||
+++ b/src/internet/spotify/spotifyservice.cpp
|
||||
@@ -94,7 +94,7 @@ SpotifyService::SpotifyService(Application* app, InternetModel* parent)
|
||||
system_blob_path_ = QCoreApplication::applicationDirPath() +
|
||||
"/../PlugIns/clementine-spotifyblob";
|
||||
#else
|
||||
- system_blob_path_ = QCoreApplication::applicationDirPath() +
|
||||
+ system_blob_path_ = qgetenv("CLEMENTINE_SPOTIFYBLOB") +
|
||||
"/clementine-spotifyblob" CMAKE_EXECUTABLE_SUFFIX;
|
||||
#endif
|
||||
|
|
@ -23,7 +23,6 @@
|
|||
, libpulseaudio
|
||||
, gvfs
|
||||
, libcdio
|
||||
, libspotify
|
||||
, pcre
|
||||
, projectm
|
||||
, protobuf
|
||||
|
@ -49,7 +48,8 @@ let
|
|||
withMTP = config.clementine.mtp or true;
|
||||
withCD = config.clementine.cd or true;
|
||||
withCloud = config.clementine.cloud or true;
|
||||
|
||||
in mkDerivation {
|
||||
pname = "clementine";
|
||||
version = "unstable-2022-04-11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
|
@ -59,10 +59,6 @@ let
|
|||
sha256 = "06fcbs3wig3mh711iypyj49qm5246f7qhvgvv8brqfrd8cqyh6qf";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./clementine-spotify-blob.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
|
@ -101,6 +97,8 @@ let
|
|||
|
||||
alsa-lib
|
||||
]
|
||||
# gst_plugins needed for setup-hooks
|
||||
++ gst_plugins
|
||||
++ lib.optionals (withIpod) [ libgpod libplist usbmuxd ]
|
||||
++ lib.optionals (withMTP) [ libmtp ]
|
||||
++ lib.optionals (withCD) [ libcdio ]
|
||||
|
@ -115,74 +113,25 @@ let
|
|||
-e 's,libprotobuf.a,protobuf,g'
|
||||
'';
|
||||
|
||||
free = mkDerivation {
|
||||
pname = "clementine-free";
|
||||
inherit version;
|
||||
inherit src patches nativeBuildInputs postPatch;
|
||||
preConfigure = ''
|
||||
rm -rf ext/{,lib}clementine-spotifyblob
|
||||
'';
|
||||
|
||||
# gst_plugins needed for setup-hooks
|
||||
buildInputs = buildInputs ++ gst_plugins;
|
||||
cmakeFlags = [
|
||||
"-DUSE_SYSTEM_PROJECTM=ON"
|
||||
"-DSPOTIFY_BLOB=OFF"
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
rm -rf ext/{,lib}clementine-spotifyblob
|
||||
'';
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/clementine \
|
||||
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DUSE_SYSTEM_PROJECTM=ON"
|
||||
"-DSPOTIFY_BLOB=OFF"
|
||||
];
|
||||
|
||||
passthru.unfree = unfree;
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/clementine \
|
||||
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.clementine-player.org";
|
||||
description = "A multiplatform music player";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.ttuegel ];
|
||||
};
|
||||
meta = with lib; {
|
||||
homepage = "https://www.clementine-player.org";
|
||||
description = "A multiplatform music player";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.ttuegel ];
|
||||
};
|
||||
|
||||
# Unfree Spotify blob for Clementine
|
||||
unfree = mkDerivation {
|
||||
pname = "clementine-blob";
|
||||
inherit version;
|
||||
# Use the same patches and sources as Clementine
|
||||
inherit src nativeBuildInputs patches postPatch;
|
||||
|
||||
buildInputs = buildInputs ++ [ libspotify ];
|
||||
# Only build and install the Spotify blob
|
||||
preBuild = ''
|
||||
cd ext/clementine-spotifyblob
|
||||
'';
|
||||
postInstall = ''
|
||||
mkdir -p $out/libexec/clementine
|
||||
mv $out/bin/clementine-spotifyblob $out/libexec/clementine
|
||||
rmdir $out/bin
|
||||
|
||||
makeWrapper ${free}/bin/clementine $out/bin/clementine \
|
||||
--set CLEMENTINE_SPOTIFYBLOB $out/libexec/clementine
|
||||
|
||||
mkdir -p $out/share
|
||||
for dir in applications icons kde4; do
|
||||
ln -s "${free}/share/$dir" "$out/share/$dir"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.clementine-player.org";
|
||||
description = "Spotify integration for Clementine";
|
||||
# The blob itself is Apache-licensed, although libspotify is unfree.
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.ttuegel ];
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
free
|
||||
}
|
||||
|
|
|
@ -4623,8 +4623,6 @@ with pkgs;
|
|||
protobuf = protobuf3_19;
|
||||
};
|
||||
|
||||
clementineUnfree = clementine.unfree;
|
||||
|
||||
mellowplayer = libsForQt5.callPackage ../applications/audio/mellowplayer { };
|
||||
|
||||
ciopfs = callPackage ../tools/filesystems/ciopfs { };
|
||||
|
|
Loading…
Reference in a new issue