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