nixpkgs/pkgs/applications/audio/clementine/default.nix

53 lines
1.2 KiB
Nix
Raw Normal View History

2013-12-31 14:51:11 +01: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
, sparsehash, config }:
2013-12-31 14:51:11 +01:00
let withSpotify = config.clementine.spotify or false;
in
2013-12-31 14:51:11 +01:00
stdenv.mkDerivation {
name = "clementine-1.2.1";
src = fetchurl {
url = http://clementine-player.googlecode.com/files/clementine-1.2.1.tar.gz;
sha256 = "0kk5cjmb8nirx0im3c0z91af2k72zxi6lwzm6rb57qihya5nwmfv";
};
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
] ++ stdenv.lib.optional withSpotify libspotify;
2013-12-31 14:51:11 +01:00
meta = with stdenv.lib; {
homepage = "http://www.clementine-player.org";
description = "A multiplatform music player";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ maintainers.ttuegel ];
# libspotify is unfree
hydraPlatforms = optional (!withSpotify) platforms.linux;
2013-12-31 14:51:11 +01:00
};
}