9 stdenv.mkDerivation rec {
14 url = "mirror://sourceforge/bs2b/${pname}-${version}.tar.bz2";
15 sha256 = "0vz442kkjn2h0dlxppzi4m5zx8qfyrivq581n06xzvnyxi5rg6a7";
18 nativeBuildInputs = [ pkg-config ];
19 buildInputs = [ libsndfile ];
22 # Required for cross-compilation.
23 # Prevents linking error with 'undefined reference to rpl_malloc'.
24 # I think it's safe to assume that most libcs will properly handle
25 # realloc(NULL, size) and treat it like malloc(size).
26 "ac_cv_func_malloc_0_nonnull=yes"
28 hardeningDisable = [ "format" ];
31 homepage = "https://bs2b.sourceforge.net/";
32 description = "Bauer stereophonic-to-binaural DSP library";
33 license = lib.licenses.mit;
34 platforms = lib.platforms.unix;