2010-07-28 12:55:54 +01:00
|
|
|
{ stdenv, fetchurl, builderDefs }:
|
|
|
|
|
2007-10-29 10:52:04 +00:00
|
|
|
let
|
2010-07-28 12:55:54 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://www.ladspa.org/ladspa_sdk/ladspa.h.txt;
|
|
|
|
sha256 = "1b908csn85ng9sz5s5d1mqk711cmawain2z8px2ajngihdrynb67";
|
|
|
|
};
|
2007-10-29 10:52:04 +00:00
|
|
|
in
|
2010-07-28 12:55:54 +01:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
|
|
|
buildInputs = [];
|
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
in with localDefs;
|
2007-10-29 10:52:04 +00:00
|
|
|
let
|
2010-07-28 12:55:54 +01:00
|
|
|
copyFile = fullDepEntry ("
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p \$out/include
|
2010-07-28 12:55:54 +01:00
|
|
|
cp ${src} \$out/include/ladspa.h
|
|
|
|
") [minInit defEnsureDir];
|
2007-10-29 10:52:04 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2010-07-28 12:55:54 +01:00
|
|
|
name = "ladspa.h";
|
|
|
|
builder = writeScript "ladspa.h-builder"
|
|
|
|
(textClosure localDefs [copyFile]);
|
|
|
|
meta = {
|
|
|
|
description = "LADSPA format audio plugins";
|
|
|
|
inherit src;
|
|
|
|
};
|
2007-10-29 10:52:04 +00:00
|
|
|
}
|