summary refs log tree commit diff
path: root/pkgs/applications/audio/ladspa-plugins/default.nix
blob: 6a0dfe020d0af99d9b1d0b6d3456acd7e090180b (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
args: with args;
	let localDefs = builderDefs.passthru.function {
		src = 
		fetchurl {
			url = http://plugin.org.uk/releases/0.4.15/swh-plugins-0.4.15.tar.gz;
			sha256 = "0h462s4mmqg4iw7zdsihnrmz2vjg0fd49qxw2a284bnryjjfhpnh";
		};
		buildInputs = [fftw ladspaH pkgconfig];
		configureFlags = [];
	};
	in with localDefs;
let
	postInstall = FullDepEntry ("
		ensureDir \$out/share/ladspa/
		ln -s \$out/lib/ladspa \$out/share/ladspa/lib
	") [minInit defEnsureDir];
in
stdenv.mkDerivation {
	name = "swh-plugins-0.4.15";
	builder = writeScript "swh-plugins-0.4.15-builder"
		(textClosure localDefs [doConfigure doMakeInstall 
			postInstall doForceShare]);
	meta = {
		description = "LADSPA format audio plugins";
		inherit src;
	};
}