2007-11-25 19:35:33 +01:00
|
|
|
args : with args;
|
2008-11-04 22:24:10 +01:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2007-11-25 19:35:33 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = ftp://ftp.gnu.org/gnu/indent/indent-2.2.9.tar.gz;
|
|
|
|
sha256 = "0rp4divzv5xyflm8ixpp2isa092n0nmhgmhvz56db7k3lnyqg4qb";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
configureFlags = [];
|
2008-08-19 07:54:09 +02:00
|
|
|
};
|
2008-01-18 13:36:56 +01:00
|
|
|
in with localDefs;
|
2007-11-25 19:35:33 +01:00
|
|
|
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 {
|
|
|
|
name = "indent";
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-01-18 13:36:56 +01:00
|
|
|
(textClosure localDefs [doConfigure preBuild doMakeInstall doForceShare doPropagate]);
|
2007-11-25 19:35:33 +01:00
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "GNU Indent - a source text formatter";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2007-11-25 19:35:33 +01:00
|
|
|
};
|
|
|
|
}
|