Merge pull request #7640 from jraygauthier/jrg/clementine_improvements
Improvements to the clementine package.
This commit is contained in:
commit
934d3c19fd
@ -1,60 +1,88 @@
|
|||||||
{ stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst_plugins_base
|
{ stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst_plugins_base
|
||||||
, gst_plugins_good, gst_plugins_bad, gst_plugins_ugly, gst_ffmpeg
|
|
||||||
, liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist
|
, liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist
|
||||||
, usbmuxd, libmtp, gvfs, libcdio, protobuf, libspotify, qca2, pkgconfig
|
, usbmuxd, libmtp, gvfs, libcdio, protobuf, libspotify, qca2, pkgconfig
|
||||||
, sparsehash, config, makeWrapper }:
|
, sparsehash, config, makeWrapper, gst_plugins }:
|
||||||
|
|
||||||
let withSpotify = config.clementine.spotify or false;
|
let
|
||||||
in
|
version = "1.2.3";
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "clementine-1.2.3";
|
|
||||||
|
|
||||||
src = fetchurl {
|
withSpotify = config.clementine.spotify or false;
|
||||||
url = https://github.com/clementine-player/Clementine/archive/1.2.3.tar.gz;
|
|
||||||
sha256 = "1gx1109i4pylz6x7gvp4rdzc6dvh0w6in6hfbygw01d08l26bxbx";
|
wrappedExeName = "clementine";
|
||||||
|
|
||||||
|
wrapped = stdenv.mkDerivation {
|
||||||
|
name = "clementine-wrapped-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = https://github.com/clementine-player/Clementine/archive/1.2.3.tar.gz;
|
||||||
|
sha256 = "1gx1109i4pylz6x7gvp4rdzc6dvh0w6in6hfbygw01d08l26bxbx";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ ./clementine-1.2.1-include-paths.patch ];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
boost
|
||||||
|
cmake
|
||||||
|
fftw
|
||||||
|
gettext
|
||||||
|
glew
|
||||||
|
gst_plugins_base
|
||||||
|
gstreamer
|
||||||
|
gvfs
|
||||||
|
libcdio
|
||||||
|
libgpod
|
||||||
|
liblastfm
|
||||||
|
libmtp
|
||||||
|
libplist
|
||||||
|
pkgconfig
|
||||||
|
protobuf
|
||||||
|
qca2
|
||||||
|
qjson
|
||||||
|
qt4
|
||||||
|
sparsehash
|
||||||
|
sqlite
|
||||||
|
taglib
|
||||||
|
usbmuxd
|
||||||
|
];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./clementine-1.2.1-include-paths.patch ];
|
in
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "clementine-${version}";
|
||||||
|
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost
|
wrapped
|
||||||
cmake
|
|
||||||
fftw
|
|
||||||
gettext
|
|
||||||
glew
|
|
||||||
gst_plugins_base
|
|
||||||
gst_plugins_good
|
|
||||||
gst_plugins_ugly
|
|
||||||
gst_ffmpeg
|
|
||||||
gstreamer
|
|
||||||
gvfs
|
|
||||||
libcdio
|
|
||||||
libgpod
|
|
||||||
liblastfm
|
|
||||||
libmtp
|
|
||||||
libplist
|
|
||||||
makeWrapper
|
makeWrapper
|
||||||
pkgconfig
|
] ++ gst_plugins
|
||||||
protobuf
|
++ stdenv.lib.optional withSpotify libspotify;
|
||||||
qca2
|
|
||||||
qjson
|
|
||||||
qt4
|
|
||||||
sparsehash
|
|
||||||
sqlite
|
|
||||||
taglib
|
|
||||||
usbmuxd
|
|
||||||
] ++ stdenv.lib.optional withSpotify libspotify;
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp -a ${wrapped}/* $out
|
||||||
|
chmod -R u+w-t $out
|
||||||
|
|
||||||
postInstall = ''
|
wrapProgram "$out/bin/${wrappedExeName}" \
|
||||||
wrapProgram $out/bin/clementine \
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
|
||||||
--set GST_PLUGIN_SYSTEM_PATH "$GST_PLUGIN_SYSTEM_PATH"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preferLocalBuild = true;
|
||||||
|
dontPatchELF = true;
|
||||||
|
dontStrip = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://www.clementine-player.org";
|
homepage = "http://www.clementine-player.org";
|
||||||
description = "A multiplatform music player";
|
description = "A multiplatform music player"
|
||||||
|
+ " ("
|
||||||
|
+ concatStrings (optionals (withSpotify) ["with spotify, "])
|
||||||
|
+ "with gstreamer plugins: "
|
||||||
|
+ concatStrings (intersperse ", " (map (x: x.name) gst_plugins))
|
||||||
|
+ ")";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = [ maintainers.ttuegel ];
|
maintainers = [ maintainers.ttuegel ];
|
||||||
|
@ -995,6 +995,7 @@ let
|
|||||||
|
|
||||||
clementine = callPackage ../applications/audio/clementine {
|
clementine = callPackage ../applications/audio/clementine {
|
||||||
boost = boost156;
|
boost = boost156;
|
||||||
|
gst_plugins = [ gst_plugins_base gst_plugins_good gst_plugins_ugly gst_ffmpeg ];
|
||||||
};
|
};
|
||||||
|
|
||||||
ciopfs = callPackage ../tools/filesystems/ciopfs { };
|
ciopfs = callPackage ../tools/filesystems/ciopfs { };
|
||||||
|
Loading…
Reference in New Issue
Block a user