nixpkgs/pkgs/development/libraries/libsbsms/common.nix
yuu d73c2f3a0e
libsbsms: init at 2.0.2 and 2.3.0
Co-authored-by: Jonathan Ringer <jonringer117@gmail.com>
Co-authored-by: Thiago K. Okada <thiagokokada@gmail.com>
2021-11-13 20:51:03 -03:00

37 lines
652 B
Nix

{ lib
, stdenv
, fetchurl
, substituteAll
, pname
, version
, url
, sha256
, homepage
}:
stdenv.mkDerivation rec {
inherit pname version;
src = fetchurl {
inherit url sha256;
};
patches = [
# Fix buidling on platforms other than x86
(substituteAll {
src = ./configure.patch;
msse = lib.optionalString stdenv.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;
};
}