Files
nixpkgs/pkgs/by-name/au/aubio/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchurl,
alsa-lib,
fftw,
libjack2,
libsamplerate,
libsndfile,
pkg-config,
python311,
wafHook,
}:
stdenv.mkDerivation rec {
pname = "aubio";
version = "0.4.9";
src = fetchurl {
url = "https://aubio.org/pub/aubio-${version}.tar.bz2";
sha256 = "1npks71ljc48w6858l9bq30kaf5nph8z0v61jkfb70xb9np850nl";
};
nativeBuildInputs = [
pkg-config
python311
wafHook
];
buildInputs = [
alsa-lib
fftw
libjack2
libsamplerate
libsndfile
];
strictDeps = true;
wafFlags = lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "--disable-tests";
postPatch = ''
# U was removed in python 3.11 because it had no effect
substituteInPlace waflib/*.py \
--replace "m='rU" "m='r" \
--replace "'rU'" "'r'"
'';
meta = with lib; {
description = "Library for audio labelling";
homepage = "https://aubio.org/";
license = licenses.gpl2;
maintainers = with maintainers; [
marcweber
fpletz
];
platforms = platforms.linux;
};
}