diff --git a/pkgs/applications/audio/r128gain/default.nix b/pkgs/applications/audio/r128gain/default.nix index 17f6840d4e22..3044acb32649 100644 --- a/pkgs/applications/audio/r128gain/default.nix +++ b/pkgs/applications/audio/r128gain/default.nix @@ -1,6 +1,8 @@ { lib , fetchFromGitHub +, genericUpdater , substituteAll +, common-updater-scripts , ffmpeg_3 , python3Packages , sox @@ -8,13 +10,13 @@ python3Packages.buildPythonApplication rec { pname = "r128gain"; - version = "1.0.1"; + version = "1.0.3"; src = fetchFromGitHub { owner = "desbma"; repo = "r128gain"; rev = version; - sha256 = "0fnxis2g7mw8mb0cz9bws909lrndli7ml54nnzda49vc2fhbjwxr"; + sha256 = "0w2i2szajv1vcmc96w0fczdr8xc28ijcf1gdg180f21gi6yh96sc"; }; patches = [ @@ -33,6 +35,13 @@ python3Packages.buildPythonApplication rec { # sandbox to be disabled. doCheck = false; + passthru = { + updateScript = genericUpdater { + inherit pname version; + versionLister = "${common-updater-scripts}/bin/list-git-tags ${src.meta.homepage}"; + }; + }; + meta = with lib; { description = "Fast audio loudness scanner & tagger (ReplayGain v2 / R128)"; homepage = "https://github.com/desbma/r128gain"; diff --git a/pkgs/applications/audio/r128gain/ffmpeg-location.patch b/pkgs/applications/audio/r128gain/ffmpeg-location.patch index ff118024011e..c01f115c1d6d 100644 --- a/pkgs/applications/audio/r128gain/ffmpeg-location.patch +++ b/pkgs/applications/audio/r128gain/ffmpeg-location.patch @@ -1,5 +1,3 @@ -diff --git i/r128gain/__init__.py w/r128gain/__init__.py -index 53fc3ef..f144e15 100755 --- i/r128gain/__init__.py +++ w/r128gain/__init__.py @@ -78,7 +78,7 @@ def get_ffmpeg_lib_versions(ffmpeg_path=None): @@ -14,7 +12,7 @@ index 53fc3ef..f144e15 100755 @@ -156,7 +156,7 @@ def get_r128_loudness(audio_filepaths, *, calc_peak=True, enable_ffmpeg_threadin os.devnull, **additional_ffmpeg_args, - f="null"), + f="null").global_args("-hide_banner", "-nostats"), - cmd=ffmpeg_path or "ffmpeg") + cmd=ffmpeg_path or "@ffmpeg@/bin/ffmpeg")