Files
nixpkgs/pkgs/development/libraries/libsbsms/common.nix
2025-02-10 22:51:56 +01:00

37 lines
658 B
Nix

{
lib,
stdenv,
fetchurl,
replaceVars,
pname,
version,
url,
sha256,
homepage,
}:
stdenv.mkDerivation rec {
inherit pname version;
src = fetchurl {
inherit url sha256;
};
patches = [
# Fix buidling on platforms other than x86
(replaceVars ./configure.patch {
msse = lib.optionalString stdenv.hostPlatform.isx86_64 "-msse";
})
];
doCheck = true;
meta = {
inherit homepage;
description = "Subband sinusoidal modeling library for time stretching and pitch scaling audio";
maintainers = with lib.maintainers; [ yuu ];
license = lib.licenses.gpl2;
platforms = lib.platforms.all;
};
}