1{
2 lib,
3 stdenv,
4 fetchurl,
5 replaceVars,
6 pname,
7 version,
8 url,
9 sha256,
10 homepage,
11}:
12
13stdenv.mkDerivation {
14 inherit pname version;
15
16 src = fetchurl {
17 inherit url sha256;
18 };
19
20 patches = [
21 # Fix building on platforms other than x86
22 (replaceVars ./configure.patch {
23 msse = lib.optionalString stdenv.hostPlatform.isx86_64 "-msse";
24 })
25 ];
26
27 doCheck = true;
28
29 meta = {
30 inherit homepage;
31 description = "Subband sinusoidal modeling library for time stretching and pitch scaling audio";
32 maintainers = with lib.maintainers; [ yuu ];
33 license = lib.licenses.gpl2;
34 platforms = lib.platforms.all;
35 };
36}