git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #99199 from AluisioASG/aasg/r128gain-1.0.3

r128gain: 1.0.1 -> 1.0.3

commit1f87da9754c75c6170173e3483f6032f9df21431 authorTimo Kaufmann <timokau@zoho.com> dateThu 1 Oct 2020, 22:51 (6 years ago) parent10516c25fb64f9
2 files changed+12−5
pkgs/applications/audio/r128gain/default.nix+11−2 pkgs/applications/audio/r128gain/ffmpeg-location.patch+1−3
pkgs/applications/audio/r128gain/default.nix+11−2
@@ -1,6 +1,8 @@
11{ lib
22, fetchFromGitHub
3+, genericUpdater
34, substituteAll
5+, common-updater-scripts
46, ffmpeg_3
57, python3Packages
68, sox
@@ -8,13 +10,13 @@
810
911python3Packages.buildPythonApplication rec {
1012 pname = "r128gain";
11− version = "1.0.1";
13+ version = "1.0.3";
1214
1315 src = fetchFromGitHub {
1416 owner = "desbma";
1517 repo = "r128gain";
1618 rev = version;
17− sha256 = "0fnxis2g7mw8mb0cz9bws909lrndli7ml54nnzda49vc2fhbjwxr";
19+ sha256 = "0w2i2szajv1vcmc96w0fczdr8xc28ijcf1gdg180f21gi6yh96sc";
1820 };
1921
2022 patches = [
@@ -33,6 +35,13 @@ python3Packages.buildPythonApplication rec {
3335 # sandbox to be disabled.
3436 doCheck = false;
3537
38+ passthru = {
39+ updateScript = genericUpdater {
40+ inherit pname version;
41+ versionLister = "${common-updater-scripts}/bin/list-git-tags ${src.meta.homepage}";
42+ };
43+ };
44+
3645 meta = with lib; {
3746 description = "Fast audio loudness scanner & tagger (ReplayGain v2 / R128)";
3847 homepage = "https://github.com/desbma/r128gain";
pkgs/applications/audio/r128gain/ffmpeg-location.patch+1−3
@@ -1,5 +1,3 @@
1−diff --git i/r128gain/__init__.py w/r128gain/__init__.py
2−index 53fc3ef..f144e15 100755
31--- i/r128gain/__init__.py
42+++ w/r128gain/__init__.py
53@@ -78,7 +78,7 @@ def get_ffmpeg_lib_versions(ffmpeg_path=None):
@@ -14,7 +12,7 @@ index 53fc3ef..f144e15 100755
1412@@ -156,7 +156,7 @@ def get_r128_loudness(audio_filepaths, *, calc_peak=True, enable_ffmpeg_threadin
1513 os.devnull,
1614 **additional_ffmpeg_args,
17− f="null"),
15+ f="null").global_args("-hide_banner", "-nostats"),
1816- cmd=ffmpeg_path or "ffmpeg")
1917+ cmd=ffmpeg_path or "@ffmpeg@/bin/ffmpeg")
2018