quodlibet: update to version 2.6.3
also provides two distinctive flavours, which either wrap the program to pull in the gstreamer plugins or not.
This commit is contained in:
parent
8487fdd209
commit
795753bbc6
@ -1,11 +1,18 @@
|
|||||||
{ stdenv, fetchurl, python, buildPythonPackage, mutagen, pygtk, pygobject
|
{ stdenv, fetchurl, python, buildPythonPackage, mutagen, pygtk, pygobject
|
||||||
, pythonDBus, gst_python, gst_plugins_base, gst_plugins_good, gst_plugins_ugly }:
|
, pythonDBus, gst_python, withGstPlugins ? false, gst_plugins_base ? null
|
||||||
|
, gst_plugins_good ? null, gst_plugins_ugly ? null, gst_plugins_bad ? null }:
|
||||||
|
|
||||||
let version = "2.5"; in
|
assert withGstPlugins -> gst_plugins_base != null
|
||||||
|
|| gst_plugins_good != null
|
||||||
|
|| gst_plugins_ugly != null
|
||||||
|
|| gst_plugins_bad != null;
|
||||||
|
|
||||||
|
let version = "2.6.3"; in
|
||||||
|
|
||||||
buildPythonPackage {
|
buildPythonPackage {
|
||||||
# call the package quodlibet and just quodlibet
|
# call the package quodlibet and just quodlibet
|
||||||
name = "quodlibet-${version}";
|
name = "quodlibet-${version}"
|
||||||
|
+ stdenv.lib.optionalString withGstPlugins "-with-gst-plugins";
|
||||||
namePrefix = "";
|
namePrefix = "";
|
||||||
|
|
||||||
# XXX, tests fail
|
# XXX, tests fail
|
||||||
@ -13,12 +20,12 @@ buildPythonPackage {
|
|||||||
|
|
||||||
src = [
|
src = [
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "https://quodlibet.googlecode.com/files/quodlibet-${version}.tar.gz";
|
url = "https://bitbucket.org/lazka/quodlibet-files/raw/default/releases/quodlibet-${version}.tar.gz";
|
||||||
sha256 = "0qrmlz7m1jpmriy8bgycjiwzbf3annznkn4x5k32yy9bylxa7lwb";
|
sha256 = "0ilasi4b0ay8r6v6ba209wsm80fq2nmzigzc5kvphrk71jwypx6z";
|
||||||
})
|
})
|
||||||
(fetchurl {
|
(fetchurl {
|
||||||
url = "https://quodlibet.googlecode.com/files/quodlibet-plugins-${version}.tar.gz";
|
url = "https://bitbucket.org/lazka/quodlibet-files/raw/default/releases/quodlibet-plugins-${version}.tar.gz";
|
||||||
sha256 = "0kf2mkq2zk38626bn48gscvy6ir04f5b2z57ahlxlqy8imv2cjff";
|
sha256 = "1rv08rhdjad8sjhplqsspcf4vkazgkxyshsqmbfbrrk5kvv57ybc";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -30,19 +37,23 @@ buildPythonPackage {
|
|||||||
'';
|
'';
|
||||||
patches = [ ./quodlibet-package-plugins.patch ];
|
patches = [ ./quodlibet-package-plugins.patch ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = stdenv.lib.optionals withGstPlugins [
|
||||||
gst_plugins_base gst_plugins_good gst_plugins_ugly
|
gst_plugins_base gst_plugins_good gst_plugins_ugly gst_plugins_bad
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
mutagen pygtk pygobject pythonDBus gst_python
|
mutagen pygtk pygobject pythonDBus gst_python
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = stdenv.lib.optionalString withGstPlugins ''
|
||||||
# Wrap quodlibet so it finds the GStreamer plug-ins
|
# Wrap quodlibet so it finds the GStreamer plug-ins
|
||||||
wrapProgram "$out/bin/quodlibet" --prefix \
|
wrapProgram "$out/bin/quodlibet" --prefix \
|
||||||
GST_PLUGIN_PATH ":" \
|
GST_PLUGIN_PATH ":" \
|
||||||
"${gst_plugins_base}/lib/gstreamer-0.10:${gst_plugins_good}/lib/gstreamer-0.10:${gst_plugins_ugly}/lib/gstreamer-0.10"
|
${ stdenv.lib.concatStringsSep ":"
|
||||||
|
(map (s: s+"/lib/gstreamer-0.10")
|
||||||
|
(stdenv.lib.filter (s: s != null) [
|
||||||
|
gst_plugins_base gst_plugins_good gst_plugins_ugly gst_plugins_bad
|
||||||
|
])) }
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -62,6 +73,7 @@ buildPythonPackage {
|
|||||||
& internet radio, and all major audio formats.
|
& internet radio, and all major audio formats.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
maintainer = [ stdenv.lib.maintainers.coroa ];
|
||||||
homepage = http://code.google.com/p/quodlibet/;
|
homepage = http://code.google.com/p/quodlibet/;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -8561,6 +8561,12 @@ let
|
|||||||
inherit (pythonPackages) mutagen;
|
inherit (pythonPackages) mutagen;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
quodlibet-with-gst-plugins = callPackage ../applications/audio/quodlibet {
|
||||||
|
inherit (pythonPackages) mutagen;
|
||||||
|
withGstPlugins = true;
|
||||||
|
gst_plugins_bad = null;
|
||||||
|
};
|
||||||
|
|
||||||
rakarrack = callPackage ../applications/audio/rakarrack {
|
rakarrack = callPackage ../applications/audio/rakarrack {
|
||||||
inherit (xorg) libXpm libXft;
|
inherit (xorg) libXpm libXft;
|
||||||
fltk = fltk13;
|
fltk = fltk13;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user