mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
beets: Use audiotools backend for replaygain.
Using commands such as mp3gain and aacgain is only the default for backwards-compatible reasons. However, on Nix(OS), we would have to either patch those tools into beets or rely on an impurity, so let's depend on audiotools and also default to that backend. Of course, there is also a GStreamer backend, but it comes with a hell of additional dependencies (which not only cover audio files), which is why I decided against defaulting to GStreamer and package audiotools instead (in eecd932). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
181f1395dd
commit
213d11158f
2 changed files with 21 additions and 1 deletions
|
@ -99,7 +99,10 @@ in buildPythonPackage rec {
|
|||
responses
|
||||
];
|
||||
|
||||
patches = [ ./mediafile-codec-fix.patch ];
|
||||
patches = [
|
||||
./mediafile-codec-fix.patch
|
||||
./replaygain-default-audiotools.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/assertIn.*item.*path/d' test/test_info.py
|
||||
|
|
17
pkgs/tools/audio/beets/replaygain-default-audiotools.patch
Normal file
17
pkgs/tools/audio/beets/replaygain-default-audiotools.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py
|
||||
index 40b3a3a..9b54a5a 100644
|
||||
--- a/beetsplug/replaygain.py
|
||||
+++ b/beetsplug/replaygain.py
|
||||
@@ -627,11 +627,10 @@ class ReplayGainPlugin(BeetsPlugin):
|
||||
super(ReplayGainPlugin, self).__init__()
|
||||
self.import_stages = [self.imported]
|
||||
|
||||
- # default backend is 'command' for backward-compatibility.
|
||||
self.config.add({
|
||||
'overwrite': False,
|
||||
'auto': True,
|
||||
- 'backend': u'command',
|
||||
+ 'backend': u'audiotools',
|
||||
'targetlevel': 89,
|
||||
})
|
||||
|
Loading…
Reference in a new issue