7 stdenv.mkDerivation rec {
11 url = "https://www.ladspa.org/download/ladspa_sdk_${version}.tgz";
12 sha256 = "1vgx54cgsnc3ncl9qbgjbmq12c444xjafjkgr348h36j16draaa2";
15 sourceRoot = "ladspa_sdk_${version}/src";
20 sed -i 's@/usr/@$(out)/@g' Makefile
21 substituteInPlace Makefile \
22 --replace /tmp/test.wav $NIX_BUILD_TOP/${sourceRoot}/test.wav
26 "CC=${stdenv.cc.targetPrefix}cc"
27 "CPP=${stdenv.cc.targetPrefix}c++"
30 # The default target also runs tests, which we don't want to do in
31 # the build phase as it would break cross.
32 buildFlags = [ "targets" ];
34 # Tests try to create and play a sound file. Playing will fail, but
35 # it's probably still useful to run the part that creates the file.
39 description = "SDK for the LADSPA audio plugin standard";
41 The LADSPA SDK, including the ladspa.h API header file,
42 ten example LADSPA plugins and
43 three example programs (applyplugin, analyseplugin and listplugins).
45 homepage = "http://www.ladspa.org/ladspa_sdk/overview.html";
46 license = lib.licenses.lgpl2;
47 maintainers = [ lib.maintainers.magnetophon ];
48 platforms = lib.platforms.linux;