Skip to content

Commit

Permalink
alsa-utils: 1.2.10 -> 1.2.12 (#347665)
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol authored Oct 10, 2024
2 parents a72a8bc + c342eeb commit e9173aa
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions pkgs/by-name/al/alsa-utils/package.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{ lib
, stdenv
, directoryListingUpdater
, fetchurl
, fetchpatch
, alsa-lib
, alsa-plugins
, gettext
, makeWrapper
, ncurses
, libsamplerate
, pciutils
, procps
, which
, fftw
, pipewire
Expand All @@ -30,23 +31,12 @@ let
in
stdenv.mkDerivation rec {
pname = "alsa-utils";
version = "1.2.10";
version = "1.2.12";

src = fetchurl {
url = "mirror://alsa/utils/alsa-utils-${version}.tar.bz2";
hash = "sha256-EEti7H8Cp84WynefSBVhbfHMIZM1A3g6kQe1lE+DBjo=";
hash = "sha256-mLxmd9DAB0AGZ5BRgiMkoKsIea6lWKj2i1EXgNMM2SQ=";
};
patches = [
# Backport fixes for musl libc. Remove on next release
(fetchpatch {
url = "https://github.com/alsa-project/alsa-utils/commit/8c229270f6bae83b705a03714c46067a7aa57b02.patch";
hash = "sha256-sUaBHY8EHf4805nF6tyNV5jYXcJf3O+r04VXFu4dUCE=";
})
(fetchpatch {
url = "https://github.com/alsa-project/alsa-utils/commit/0925ad7f09b2dc77015784f9ac2f5e34dd0dd5c3.patch";
hash = "sha256-bgGU9On82AUbOjo+KN6WfuhqUAWM87OHnKN7plpG284=";
})
];

nativeBuildInputs = [ gettext makeWrapper ];
buildInputs = [ alsa-lib ncurses libsamplerate fftw ];
Expand All @@ -57,10 +47,14 @@ stdenv.mkDerivation rec {

postFixup = ''
mv $out/bin/alsa-info.sh $out/bin/alsa-info
wrapProgram $out/bin/alsa-info --prefix PATH : "${lib.makeBinPath [ which pciutils ]}"
wrapProgram $out/bin/alsa-info --prefix PATH : "${lib.makeBinPath [ which pciutils procps ]}"
wrapProgram $out/bin/aplay --set-default ALSA_PLUGIN_DIR ${plugin-dir}
'';

passthru.updateScript = directoryListingUpdater {
url = "https://www.alsa-project.org/files/pub/utils/";
};

meta = with lib; {
homepage = "http://www.alsa-project.org/";
description = "ALSA, the Advanced Linux Sound Architecture utils";
Expand Down

0 comments on commit e9173aa

Please sign in to comment.