Fix indent build
svn path=/nixpkgs/trunk/; revision=15572
This commit is contained in:
parent
908b2b6d47
commit
852603e4df
@ -1,4 +1,5 @@
|
|||||||
args : with args;
|
args : with args;
|
||||||
|
let bd = builderDefs; in
|
||||||
let localDefs = builderDefs.passthru.function {
|
let localDefs = builderDefs.passthru.function {
|
||||||
src = /* put a fetchurl here */
|
src = /* put a fetchurl here */
|
||||||
fetchurl {
|
fetchurl {
|
||||||
@ -8,19 +9,17 @@ args : with args;
|
|||||||
|
|
||||||
buildInputs = [];
|
buildInputs = [];
|
||||||
configureFlags = [];
|
configureFlags = [];
|
||||||
|
preBuild = bd.stringsWithDeps.fullDepEntry ("
|
||||||
|
sed -e '/extern FILE [*]output/i#ifndef OUTPUT_DEFINED_ELSEWHERE' -i src/indent.h
|
||||||
|
sed -e '/extern FILE [*]output/a#endif' -i src/indent.h
|
||||||
|
sed -e '1i#define OUTPUT_DEFINED_ELSEWHERE 1' -i src/output.c
|
||||||
|
") ["minInit" "doUnpack"];
|
||||||
};
|
};
|
||||||
in with localDefs;
|
in with localDefs;
|
||||||
let
|
|
||||||
preBuild = FullDepEntry ("
|
|
||||||
sed -e '/extern FILE [*]output/i#ifndef OUTPUT_DEFINED_ELSEWHERE' -i src/indent.h
|
|
||||||
sed -e '/extern FILE [*]output/a#endif' -i src/indent.h
|
|
||||||
sed -e '1i#define OUTPUT_DEFINED_ELSEWHERE 1' -i src/output.c
|
|
||||||
") [minInit doUnpack];
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "indent";
|
name = "indent";
|
||||||
builder = writeScript (name + "-builder")
|
builder = writeScript (name + "-builder")
|
||||||
(textClosure localDefs [doConfigure preBuild doMakeInstall doForceShare doPropagate]);
|
(textClosure localDefs ["doConfigure" "preBuild" "doMakeInstall" "doForceShare" "doPropagate"]);
|
||||||
meta = {
|
meta = {
|
||||||
description = "GNU Indent - a source text formatter";
|
description = "GNU Indent - a source text formatter";
|
||||||
inherit src;
|
inherit src;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user