Remove illegal meta.src attributes

This commit is contained in:
Eelco Dolstra
2014-06-05 13:04:18 +02:00
parent 246edc3df2
commit 1da6a7d4a9
8 changed files with 11 additions and 29 deletions
@@ -1,28 +1,17 @@
{ stdenv, fetchurl, builderDefs }:
{ runCommand, fetchurl }:
let
let
src = fetchurl {
url = http://www.ladspa.org/ladspa_sdk/ladspa.h.txt;
sha256 = "1b908csn85ng9sz5s5d1mqk711cmawain2z8px2ajngihdrynb67";
};
in
let localDefs = builderDefs.passthru.function {
buildInputs = [];
inherit src;
};
in with localDefs;
let
copyFile = fullDepEntry ("
mkdir -p \$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";
inherit src;
};
}
runCommand "ladspa.h"
{ meta.description = "LADSPA format audio plugins"; }
''
mkdir -p $out/include
cp ${src} $out/include/ladspa.h
''