diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2024-04-06 22:21:20 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2024-04-06 22:21:20 +0100 |
commit | ef69d7129c702e86dfbdca42682f98d40e40e498 (patch) | |
tree | d6ff64664d9d41a6e569b35fd813ef2ffc89c745 /pkgs/applications/audio/mpg123 | |
parent | f6eb921406a79870e1c41b9b629d87a7b46711e2 (diff) |
mpg123: 1.32.5 -> 1.32.6
Changes: https://mpg123.org/#2024-04-04
Diffstat (limited to 'pkgs/applications/audio/mpg123')
-rw-r--r-- | pkgs/applications/audio/mpg123/default.nix | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/pkgs/applications/audio/mpg123/default.nix b/pkgs/applications/audio/mpg123/default.nix index 7a666da0d23f3..f7480557eb5e6 100644 --- a/pkgs/applications/audio/mpg123/default.nix +++ b/pkgs/applications/audio/mpg123/default.nix @@ -15,17 +15,18 @@ , jack , withConplay ? !stdenv.hostPlatform.isWindows , perl +, writeScript }: assert withConplay -> !libOnly; stdenv.mkDerivation rec { pname = "${lib.optionalString libOnly "lib"}mpg123"; - version = "1.32.5"; + version = "1.32.6"; src = fetchurl { url = "mirror://sourceforge/mpg123/mpg123-${version}.tar.bz2"; - hash = "sha256-r5CM32zbZUS5e8cGp5n3mJTmlGivWIG/RUoOu5Fx7WM="; + hash = "sha256-zN0dCrwx1z2LQ1/GWMeQSdCpBbMGabakKgOtFp3GCeY="; }; outputs = [ "out" "dev" "man" ] ++ lib.optional withConplay "conplay"; @@ -69,6 +70,20 @@ stdenv.mkDerivation rec { --prefix PATH : $out/bin ''; + passthru = { + updateScript = writeScript "update-mpg123" '' + #!/usr/bin/env nix-shell + #!nix-shell -i bash -p curl pcre common-updater-scripts + + set -eu -o pipefail + + # Expect the text in format of '<a href="download/mpg123-1.32.6.tar.bz2">' + new_version="$(curl -s https://mpg123.org/download.shtml | + pcregrep -o1 '<a href="download/mpg123-([0-9.]+).tar.bz2">')" + update-source-version ${pname} "$new_version" + ''; + }; + meta = with lib; { description = "Fast console MPEG Audio Player and decoder library"; homepage = "https://mpg123.org"; |