Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 50 lines 1.4 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "ladspa-sdk"; 9 version = "1.15"; 10 src = fetchurl { 11 url = "https://www.ladspa.org/download/ladspa_sdk_${version}.tgz"; 12 sha256 = "1vgx54cgsnc3ncl9qbgjbmq12c444xjafjkgr348h36j16draaa2"; 13 }; 14 15 sourceRoot = "ladspa_sdk_${version}/src"; 16 17 strictDeps = true; 18 19 patchPhase = '' 20 sed -i 's@/usr/@$(out)/@g' Makefile 21 substituteInPlace Makefile \ 22 --replace /tmp/test.wav $NIX_BUILD_TOP/${sourceRoot}/test.wav 23 ''; 24 25 makeFlags = [ 26 "CC=${stdenv.cc.targetPrefix}cc" 27 "CPP=${stdenv.cc.targetPrefix}c++" 28 ]; 29 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" ]; 33 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. 36 doCheck = true; 37 38 meta = { 39 description = "SDK for the LADSPA audio plugin standard"; 40 longDescription = '' 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). 44 ''; 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; 49 }; 50}