r128gain: add update script
commitd742cff4bb1ea304c0f68f73223812535a022d54
authorAluísio Augusto Silva Gonçalves <aluisio@aasg.name>
dateWed 30 Sep 2020, 16:30 (6 years ago)
parent05739ad
pkgs/applications/audio/r128gain/default.nix+9
@@ -1,6 +1,8 @@
11{ lib
22, fetchFromGitHub
3+, genericUpdater
34, substituteAll
5+, common-updater-scripts
46, ffmpeg_3
57, python3Packages
68, sox
@@ -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";