WIP: getting good

This commit is contained in:
Vladimír Čunát
2014-08-27 01:14:09 +02:00
parent 4dccb224c5
commit fb59f27a43
31 changed files with 258 additions and 145 deletions
+3
View File
@@ -8,6 +8,9 @@ stdenv.mkDerivation rec {
sha256 = "1761vymxbp4wb5rzjvabhdkskk95pghnn67464byvzb5mfl8jpm2";
};
outputs = [ "out" "info" ];
buildInputs = [ stdenv.hookLib.multiout ];
/* If no explicit coreutils is given, use the one from stdenv. */
nativeBuildInputs = [ coreutils ];
+11 -6
View File
@@ -1,5 +1,8 @@
{ stdenv, fetchurl, libsigsegv, readline, readlineSupport ? false }:
{ stdenv, fetchurl, libsigsegv, readline, interactive ? false }:
let
inherit (stdenv.lib) optional;
in
stdenv.mkDerivation rec {
name = "gawk-4.1.0";
@@ -8,15 +11,17 @@ stdenv.mkDerivation rec {
sha256 = "0hin2hswbbd6kd6i4zzvgciwpl5fba8d2s524z8y5qagyz3x010q";
};
doCheck = !stdenv.isCygwin; # XXX: `test-dup2' segfaults on Cygwin 6.1
# When we do build separate interactive version, it makes sense to always include docs.
#outputs = stdenv.lib.optionals (!interactive) [ "out" "doc" ]; #ToDo
buildInputs = [ libsigsegv ]
++ stdenv.lib.optional readlineSupport readline;
++ optional (!interactive) stdenv.hookLib.multiout
++ optional interactive readline;
configureFlags = [ "--with-libsigsegv-prefix=${libsigsegv}" ]
++ stdenv.lib.optional readlineSupport "--with-readline=${readline}"
# only darwin where reported, seems OK on non-chrooted Fedora (don't rebuild stdenv)
++ stdenv.lib.optional (!readlineSupport && stdenv.isDarwin) "--without-readline";
++ [(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-*";
+3 -1
View File
@@ -10,7 +10,9 @@ stdenv.mkDerivation {
sha256 = "1qbjb1l7f9blckc5pqy8jlf6482hpx4awn2acmhyf5mv9wfq03p7";
};
buildInputs = [ pcre ]
#outputs = [ "out" "doc" ]; ToDo
buildInputs = [ stdenv.hookLib.multiout pcre ]
++ stdenv.lib.optional (libiconv != null) libiconv;
patches = [ ./test-localeconv.patch ];
+4 -1
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl}:
{ stdenv, fetchurl }:
stdenv.mkDerivation {
name = "gnused-4.2.2";
@@ -8,6 +8,9 @@ stdenv.mkDerivation {
sha256 = "f048d1838da284c8bc9753e4506b85a1e0cc1ea8999d36f6995bcb9460cddbd7";
};
outputs = [ "out" "info" ];
buildInputs = [ stdenv.hookLib.multiout ];
meta = {
homepage = http://www.gnu.org/software/sed/;
description = "GNU sed, a batch stream editor";