571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
35 lines
990 B
Nix
35 lines
990 B
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;
|
|
};
|
|
}
|