forked from mirrors/nixpkgs
Added indent
svn path=/nixpkgs/trunk/; revision=9790
This commit is contained in:
parent
7d7850cf03
commit
83e5475251
28
pkgs/development/tools/misc/indent/2.2.9.nix
Normal file
28
pkgs/development/tools/misc/indent/2.2.9.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
args : with args;
|
||||
with builderDefs {
|
||||
src = /* put a fetchurl here */
|
||||
fetchurl {
|
||||
url = ftp://ftp.gnu.org/gnu/indent/indent-2.2.9.tar.gz;
|
||||
sha256 = "0rp4divzv5xyflm8ixpp2isa092n0nmhgmhvz56db7k3lnyqg4qb";
|
||||
};
|
||||
|
||||
buildInputs = [];
|
||||
configureFlags = [];
|
||||
} null; /* null is a terminator for sumArgs */
|
||||
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")
|
||||
(textClosure [doConfigure preBuild doMakeInstall doForceShare doPropagate]);
|
||||
meta = {
|
||||
description = "
|
||||
GNU Indent - a source text formatter.
|
||||
";
|
||||
};
|
||||
}
|
9
pkgs/development/tools/misc/indent/default.nix
Normal file
9
pkgs/development/tools/misc/indent/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
let
|
||||
realPath=y: (__toPath ((toString ./JustNothing/.. )+"/"+y.version+".nix"));
|
||||
dispatch=(x: ((import (realPath x)) x));
|
||||
in
|
||||
args :
|
||||
with args;
|
||||
with builderDefs {src="";} null;
|
||||
let eater=(lib.sumArgs dispatch args); in
|
||||
eater
|
|
@ -1414,6 +1414,14 @@ rec {
|
|||
inherit fetchurl stdenv perl perlXMLSimple;
|
||||
};
|
||||
|
||||
indentFun = import ../development/tools/misc/indent {
|
||||
inherit fetchurl stdenv builderDefs;
|
||||
};
|
||||
|
||||
indent = indentFun {
|
||||
version = "2.2.9";
|
||||
} null;
|
||||
|
||||
jikespg = import ../development/tools/parsing/jikespg {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue