2013-12-31 17:51:11 +04:00
|
|
|
{ stdenv, fetchurl, boost, cmake, gettext, gstreamer, gst_plugins_base
|
|
|
|
, liblastfm, qt4, taglib, fftw, glew, qjson, sqlite, libgpod, libplist
|
|
|
|
, usbmuxd, libmtp, gvfs, libcdio, protobuf, libspotify, qca2, pkgconfig
|
2015-05-02 21:48:04 +03:00
|
|
|
, sparsehash, config, makeWrapper, runCommand, gst_plugins }:
|
2015-04-28 07:18:00 +03:00
|
|
|
|
2015-05-02 21:30:53 +03:00
|
|
|
let
|
2015-04-28 07:18:00 +03:00
|
|
|
version = "1.2.3";
|
|
|
|
|
2015-05-02 21:37:10 +03:00
|
|
|
exeName = "clementine";
|
2015-04-28 07:18:00 +03:00
|
|
|
|
2015-05-02 21:37:10 +03:00
|
|
|
unwrapped = stdenv.mkDerivation {
|
|
|
|
name = "clementine-unwrapped-${version}";
|
2015-04-28 07:18:00 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = https://github.com/clementine-player/Clementine/archive/1.2.3.tar.gz;
|
|
|
|
sha256 = "1gx1109i4pylz6x7gvp4rdzc6dvh0w6in6hfbygw01d08l26bxbx";
|
|
|
|
};
|
|
|
|
|
2015-05-02 21:30:53 +03:00
|
|
|
patches = [
|
|
|
|
./clementine-1.2.1-include-paths.patch
|
|
|
|
./clementine-dbus-namespace.patch
|
|
|
|
];
|
2015-04-28 07:18:00 +03:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
2013-12-31 17:51:11 +04:00
|
|
|
|
2014-05-25 03:25:04 +04:00
|
|
|
in
|
2015-04-28 07:18:00 +03:00
|
|
|
|
2015-05-02 21:48:04 +03:00
|
|
|
runCommand "clementine-${version}"
|
|
|
|
{
|
|
|
|
buildInputs = [ unwrapped makeWrapper ] ++ gst_plugins;
|
2015-04-28 07:18:00 +03:00
|
|
|
dontPatchELF = true;
|
|
|
|
dontStrip = true;
|
2013-12-31 17:51:11 +04:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://www.clementine-player.org";
|
2015-04-28 07:18:00 +03:00
|
|
|
description = "A multiplatform music player"
|
2015-05-02 21:38:16 +03:00
|
|
|
+ " (with gstreamer plugins: "
|
2015-04-28 07:18:00 +03:00
|
|
|
+ concatStrings (intersperse ", " (map (x: x.name) gst_plugins))
|
|
|
|
+ ")";
|
2013-12-31 17:51:11 +04:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2014-03-07 21:20:18 +04:00
|
|
|
maintainers = [ maintainers.ttuegel ];
|
2013-12-31 17:51:11 +04:00
|
|
|
};
|
|
|
|
}
|
2015-05-02 21:48:04 +03:00
|
|
|
''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper "${unwrapped}/bin/${exeName}" "$out/bin/${exeName}" \
|
|
|
|
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
|
|
|
|
''
|