2007-10-29 11:52:04 +01:00
|
|
|
args: with args;
|
|
|
|
let
|
|
|
|
src =
|
|
|
|
fetchurl {
|
|
|
|
url = http://www.ladspa.org/ladspa_sdk/ladspa.h.txt;
|
|
|
|
sha256 = "1b908csn85ng9sz5s5d1mqk711cmawain2z8px2ajngihdrynb67";
|
|
|
|
};
|
|
|
|
in
|
2008-11-04 22:24:10 +01:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2007-10-29 11:52:04 +01:00
|
|
|
buildInputs = [];
|
|
|
|
inherit src;
|
2008-08-19 07:54:09 +02:00
|
|
|
};
|
2008-01-18 13:36:56 +01:00
|
|
|
in with localDefs;
|
2007-10-29 11:52:04 +01:00
|
|
|
let
|
2009-05-20 01:25:58 +02:00
|
|
|
copyFile = fullDepEntry ("
|
2007-10-29 11:52:04 +01: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 13:36:56 +01:00
|
|
|
(textClosure localDefs [copyFile]);
|
2007-10-29 11:52:04 +01:00
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "LADSPA format audio plugins";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2007-10-29 11:52:04 +01:00
|
|
|
};
|
|
|
|
}
|