python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / audio / qm-dsp / default.nix
bloba9163a257764f9612eac08b2737f122298ce4bfd
1 { lib, stdenv
2 , fetchFromGitHub
3 , fetchpatch
4 , kissfft
5 }:
7 stdenv.mkDerivation rec {
8   pname = "qm-dsp";
9   version = "1.7.1";
11   src = fetchFromGitHub {
12     owner = "c4dm";
13     repo = pname;
14     rev = "v${version}";
15     sha256 = "1vkb1xr2hjcaw88gig7rknlwsx01lm0w94d2z0rk5vz9ih4fslvv";
16   };
18   patches = [
19     # Make installable
20     (fetchpatch {
21       url = "https://src.fedoraproject.org/rpms/qm-dsp/raw/6eb385e2f970c4150f9c8eba73b558318475ed15/f/qm-dsp-install.patch";
22       sha256 = "071g30p17ya0pknzqa950pb93vrgp2024ray8axn22c44gvy147c";
23     })
24     (fetchpatch {
25       url = "https://src.fedoraproject.org/rpms/qm-dsp/raw/6eb385e2f970c4150f9c8eba73b558318475ed15/f/qm-dsp-flags.patch";
26       sha256 = "127n6j5bsp94kf2m1zqfvkf4iqk1h5f7w778bk7w02vi45nm4x6q";
27       postFetch = ''
28         sed -i 's~/Makefile~/build/linux/Makefile.linux32~g' "$out"
29       '';
30     })
31   ];
33   buildInputs = [
34     kissfft
35   ];
37   makefile = "build/linux/Makefile.linux32";
39   makeFlags = [
40     "PREFIX=${placeholder "out"}"
41     "LIBDIR=${placeholder "out"}/lib"
42   ];
44   NIX_CFLAGS_COMPILE = "-I${kissfft}/include/kissfft";
46   meta = with lib; {
47     description = "A C++ library of functions for DSP and Music Informatics purposes";
48     homepage = "https://code.soundsoftware.ac.uk/projects/qm-dsp";
49     license = licenses.gpl2Plus;
50     maintainers = [ maintainers.goibhniu ];
51     platforms = platforms.unix;
52   };