summary refs log tree commit diff
path: root/pkgs/applications/audio/ladspa-plugins/ladspah.nix
blob: 65647cf0a22d67301853ba8d971982f5a3750a50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
args: with args;
let 
	src = 
	fetchurl {
		url = http://www.ladspa.org/ladspa_sdk/ladspa.h.txt;
		sha256 = "1b908csn85ng9sz5s5d1mqk711cmawain2z8px2ajngihdrynb67";
	};
in
	let localDefs = builderDefs {
		buildInputs = [];
		inherit src;
	} null;
	in with localDefs;
let
	copyFile = FullDepEntry ("
		ensureDir \$out/include
		cp ${src} \$out/include/ladspa.h
	") [minInit defEnsureDir];
in
stdenv.mkDerivation {
	name = "ladspa.h";
	builder = writeScript "ladspa.h-builder"
		(textClosure localDefs [copyFile]);
	meta = {
		description = "
	LADSPA format audio plugins.
";
	};
}