fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "indent-2.2.10";
5
6 src = fetchurl {
7 url = "mirror://gnu/indent/${name}.tar.gz";
8 sha256 = "0f9655vqdvfwbxvs1gpa7py8k1z71aqh8hp73f65vazwbfz436wa";
9 };
10
11 preBuild =
12 ''
13 sed -e '/extern FILE [*]output/i#ifndef OUTPUT_DEFINED_ELSEWHERE' -i src/indent.h
14 sed -e '/extern FILE [*]output/a#endif' -i src/indent.h
15 sed -e '1i#define OUTPUT_DEFINED_ELSEWHERE 1' -i src/output.c
16 '';
17
18 meta = {
19 homepage = http://www.gnu.org/software/indent/;
20 description = "A source code reformatter";
21 license = stdenv.lib.licenses.gpl3Plus;
22 };
23}