beets: enable gstreamer support
So this was suggested as [long ago as October, 2015](https://github.com/NixOS/nixpkgs/issues/10376#issuecomment-147734898). Despite being fairly ignorant of the nix Python support, I decided that I really wanted this; this change brings in what I believe are the necessary components---I have, at least, successfully run `beet replaygain` and `beet bpd`---but it may not do it in the best way; I'm happy to consider input on that front. I can at least state that all three changes are necessary---leave any one of them out and gstreamer support doesn't work.
This commit is contained in:
parent
c79371b823
commit
dc19ba7bc6
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, writeScript, glibcLocales
|
{ stdenv, fetchFromGitHub, writeScript, glibcLocales
|
||||||
, pythonPackages, imagemagick
|
, pythonPackages, imagemagick, gobjectIntrospection, gst_all_1
|
||||||
|
|
||||||
, enableAcousticbrainz ? true
|
, enableAcousticbrainz ? true
|
||||||
, enableAcoustid ? true
|
, enableAcoustid ? true
|
||||||
@ -93,6 +93,9 @@ in pythonPackages.buildPythonApplication rec {
|
|||||||
pythonPackages.pathlib
|
pythonPackages.pathlib
|
||||||
pythonPackages.pyyaml
|
pythonPackages.pyyaml
|
||||||
pythonPackages.unidecode
|
pythonPackages.unidecode
|
||||||
|
pythonPackages.gst-python
|
||||||
|
pythonPackages.pygobject3
|
||||||
|
gobjectIntrospection
|
||||||
] ++ optional enableAcoustid pythonPackages.pyacoustid
|
] ++ optional enableAcoustid pythonPackages.pyacoustid
|
||||||
++ optional (enableFetchart
|
++ optional (enableFetchart
|
||||||
|| enableEmbyupdate
|
|| enableEmbyupdate
|
||||||
@ -119,7 +122,11 @@ in pythonPackages.buildPythonApplication rec {
|
|||||||
nose
|
nose
|
||||||
rarfile
|
rarfile
|
||||||
responses
|
responses
|
||||||
];
|
] ++ (with gst_all_1; [
|
||||||
|
gst-plugins-base
|
||||||
|
gst-plugins-good
|
||||||
|
gst-plugins-ugly
|
||||||
|
]);
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./replaygain-default-bs1770gain.patch
|
./replaygain-default-bs1770gain.patch
|
||||||
@ -198,6 +205,8 @@ in pythonPackages.buildPythonApplication rec {
|
|||||||
runHook postInstallCheck
|
runHook postInstallCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
makeWrapperArgs = [ "--set GI_TYPELIB_PATH \"$GI_TYPELIB_PATH\"" "--set GST_PLUGIN_SYSTEM_PATH_1_0 \"$GST_PLUGIN_SYSTEM_PATH_1_0\"" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Music tagger and library organizer";
|
description = "Music tagger and library organizer";
|
||||||
homepage = http://beets.radbox.org;
|
homepage = http://beets.radbox.org;
|
||||||
|
Loading…
Reference in New Issue
Block a user