bf414c9d4f
- there were many easy merge conflicts - cc-wrapper needed nontrivial changes Many other problems might've been created by interaction of the branches, but stdenv and a few other packages build fine now.
52 lines
1.8 KiB
Nix
52 lines
1.8 KiB
Nix
{ stdenv, fetchurl, xz, libsigsegv, readline, interactive ? false }:
|
|
|
|
let
|
|
inherit (stdenv.lib) optional;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "gawk-4.1.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/gawk/${name}.tar.xz";
|
|
sha256 = "1nz83vpss8xv7m475sv4qhhj40g74nvcw0y9kwq9ds8wzfmcdm7g";
|
|
};
|
|
|
|
# When we do build separate interactive version, it makes sense to always include docs.
|
|
outputs = stdenv.lib.optionals (!interactive) [ "out" "doc" ]; #ToDo
|
|
|
|
# Currently broken due to locale tests failing
|
|
#doCheck = !stdenv.isCygwin; # XXX: `test-dup2' segfaults on Cygwin 6.1
|
|
|
|
buildInputs = [ xz.bin libsigsegv ]
|
|
++ optional interactive readline;
|
|
|
|
configureFlags = [ "--with-libsigsegv-prefix=${libsigsegv}" ]
|
|
++ [(if interactive then "--with-readline=${readline}" else "--without-readline")];
|
|
|
|
doCheck = !stdenv.isCygwin; # XXX: `test-dup2' segfaults on Cygwin 6.1
|
|
|
|
postInstall = "rm $out/bin/gawk-*";
|
|
|
|
meta = {
|
|
homepage = http://www.gnu.org/software/gawk/;
|
|
description = "GNU implementation of the Awk programming language";
|
|
|
|
longDescription = ''
|
|
Many computer users need to manipulate text files: extract and then
|
|
operate on data from parts of certain lines while discarding the rest,
|
|
make changes in various text files wherever certain patterns appear,
|
|
and so on. To write a program to do these things in a language such as
|
|
C or Pascal is a time-consuming inconvenience that may take many lines
|
|
of code. The job is easy with awk, especially the GNU implementation:
|
|
Gawk.
|
|
|
|
The awk utility interprets a special-purpose programming language that
|
|
makes it possible to handle many data-reformatting jobs with just a few
|
|
lines of code.
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
maintainers = [ ];
|
|
};
|
|
}
|