2007-10-29 10:52:04 +00:00
|
|
|
args: with args;
|
|
|
|
let
|
|
|
|
src =
|
|
|
|
fetchurl {
|
|
|
|
url = http://www.ladspa.org/ladspa_sdk/ladspa.h.txt;
|
|
|
|
sha256 = "1b908csn85ng9sz5s5d1mqk711cmawain2z8px2ajngihdrynb67";
|
|
|
|
};
|
|
|
|
in
|
2008-11-04 21:24:10 +00:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2007-10-29 10:52:04 +00:00
|
|
|
buildInputs = [];
|
|
|
|
inherit src;
|
2008-08-19 05:54:09 +00:00
|
|
|
};
|
2008-01-18 12:36:56 +00:00
|
|
|
in with localDefs;
|
2007-10-29 10:52:04 +00:00
|
|
|
let
|
2009-05-19 23:25:58 +00:00
|
|
|
copyFile = fullDepEntry ("
|
2007-10-29 10:52:04 +00:00
|
|
|
ensureDir \$out/include
|
|
|
|
cp ${src} \$out/include/ladspa.h
|
|
|
|
") [minInit defEnsureDir];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ladspa.h";
|
|
|
|
builder = writeScript "ladspa.h-builder"
|
2008-01-18 12:36:56 +00:00
|
|
|
(textClosure localDefs [copyFile]);
|
2007-10-29 10:52:04 +00:00
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "LADSPA format audio plugins";
|
2008-03-02 18:49:31 +00:00
|
|
|
inherit src;
|
2007-10-29 10:52:04 +00:00
|
|
|
};
|
|
|
|
}
|