Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: libmpg123 0 -> 1
attrpath: libmpg123
Checking auto update branch...
[version]
[version] skipping because derivation has updateScript
[rustCrateVersion]
[rustCrateVersion] No cargoHash found
[golangModuleVersion]
[golangModuleVersion] Not a buildGoModule package with vendorHash
[npmDepsVersion]
[npmDepsVersion] No npmDepsHash
[updateScript]
[updateScript] Success
[updateScript] these 2 derivations will be built:
/nix/store/zvwp0kv1d2693j85g54vzyn4b1mgb2ph-update-mpg123.drv
/nix/store/dmgzh6ngh4iwmwnm95q3f7ljjqby2v97-packages.json.drv
building '/nix/store/zvwp0kv1d2693j85g54vzyn4b1mgb2ph-update-mpg123.drv'...
building '/nix/store/dmgzh6ngh4iwmwnm95q3f7ljjqby2v97-packages.json.drv'...
Going to be running update for following packages:
- libmpg123-1.33.4
Press Enter key to continue...
Running update for:
Enqueuing group of 1 packages
- libmpg123-1.33.4: UPDATING ...
- libmpg123-1.33.4: DONE.
Packages updated!
Diff after rewrites:
diff --git a/pkgs/applications/audio/mpg123/default.nix b/pkgs/applications/audio/mpg123/default.nix
index df13df07a978..c3e4a6fd2ffc 100644
--- a/pkgs/applications/audio/mpg123/default.nix
+++ b/pkgs/applications/audio/mpg123/default.nix
@@ -21,11 +21,11 @@ assert withConplay -> !libOnly;
stdenv.mkDerivation (finalAttrs: {
pname = "${lib.optionalString libOnly "lib"}mpg123";
- version = "1.33.4";
+ version = "1.33.6";
src = fetchurl {
url = "mirror://sourceforge/mpg123/mpg123-${finalAttrs.version}.tar.bz2";
- hash = "sha256-OujJ/4Cpe/wOIuifvNdGh+yk/B2zFbEmB/J/ActaR9k=";
+ hash = "sha256-kpp8GLpmK4knrtTeIprZroqytIBt0PMLkBE+sbTiGVo=";
};
outputs = [
An auto update branch exists with message `libmpg123: 1.33.4 -> 1.33.5`. New version is 1.33.6.
The auto update branch does not match or exceed the new version.
Old version 1.33.4" not present in staging derivation file with contents: {
lib,
stdenv,
fetchurl,
makeWrapper,
pkg-config,
libOnly ? false, # whether to build only the library
withAlsa ? stdenv.hostPlatform.isLinux,
alsa-lib,
withPulse ? stdenv.hostPlatform.isLinux,
libpulseaudio,
withCoreAudio ? stdenv.hostPlatform.isDarwin,
withJack ? stdenv.hostPlatform.isUnix,
jack,
withConplay ? !stdenv.hostPlatform.isWindows,
perl,
writeScript,
}:
assert withConplay -> !libOnly;
stdenv.mkDerivation (finalAttrs: {
pname = "${lib.optionalString libOnly "lib"}mpg123";
version = "1.33.5";
src = fetchurl {
url = "mirror://sourceforge/mpg123/mpg123-${finalAttrs.version}.tar.bz2";
hash = "sha256-DX68jaCv88o4PIxrWmrb5ALuW7JWaFuMVJnzpzn51t0=";
};
outputs = [
"out"
"dev"
"man"
]
++ lib.optional withConplay "conplay";
nativeBuildInputs = lib.optionals (!libOnly) (
lib.optionals withConplay [ makeWrapper ] ++ lib.optionals (withPulse || withJack) [ pkg-config ]
);
buildInputs = lib.optionals (!libOnly) (
lib.optionals withConplay [ perl ]
++ lib.optionals withAlsa [ alsa-lib ]
++ lib.optionals withPulse [ libpulseaudio ]
++ lib.optionals withCoreAudio [
]
++ lib.optionals withJack [ jack ]
);
configureFlags =
lib.optionals (!libOnly) [
"--with-audio=${
lib.strings.concatStringsSep "," (
lib.optional withJack "jack"
++ lib.optional withPulse "pulse"
++ lib.optional withAlsa "alsa"
++ lib.optional withCoreAudio "coreaudio"
++ [ "dummy" ]
)
}"
]
++ lib.optional (stdenv.hostPlatform ? mpg123) "--with-cpu=${stdenv.hostPlatform.mpg123.cpu}";
enableParallelBuilding = true;
postInstall = lib.optionalString withConplay ''
mkdir -p $conplay/bin
mv scripts/conplay $conplay/bin/
'';
preFixup = lib.optionalString withConplay ''
patchShebangs $conplay/bin/conplay
'';
postFixup = lib.optionalString withConplay ''
wrapProgram $conplay/bin/conplay \
--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 ''
new_version="$(curl -s https://mpg123.org/download.shtml |
pcregrep -o1 '')"
update-source-version ${finalAttrs.pname} "$new_version"
'';
};
meta = {
description = "Fast console MPEG Audio Player and decoder library";
homepage = "https://mpg123.org";
license = lib.licenses.lgpl21Only;
maintainers = with lib.maintainers; [ ftrvxmtrx ];
platforms = lib.platforms.all;
};
})