nixpkgs/pkgs/tools
Eelco Dolstra 0b7e256162 * Hook variables in the generic builder are now executed using eval.
This has a major advantage: you can write hooks directly in Nix
  expressions.  For instance, rather than write a builder like this:

    source $stdenv/setup

    postInstall=postInstall
    postInstall() {
        ln -sf gzip $out/bin/gunzip
        ln -sf gzip $out/bin/zcat
    }

    genericBuild

  (the gzip builder), you can just add this attribute to the
  derivation:

    postInstall = "ln -sf gzip $out/bin/gunzip; ln -sf gzip $out/bin/zcat";

  and so a separate build script becomes unnecessary.  This should
  allow us to get rid of most builders in Nixpkgs.

* Allow configure and make arguments to contain whitespace.
  Previously, you could say, for instance

    configureFlags="CFLAGS=-O0"

  but not

    configureFlags="CFLAGS=-O0 -g"

  since the `-g' would be interpreted as a separate argument to
  configure.  Now you can say

    configureFlagsArray=("CFLAGS=-O0 -g")

  or similarly

    configureFlagsArray=("CFLAGS=-O0 -g" "LDFLAGS=-L/foo -L/bar")

  which does the right thing.  Idem for makeFlags, installFlags,
  checkFlags and distFlags.

  Unfortunately you can't pass arrays to Bash through the environment,
  so you can't put the array above in a Nix expression, e.g.,

    configureFlagsArray = ["CFLAGS=-O0 -g"];

  since it would just be flattened to a since string.  However, you
  can use the inline hooks described above:

    preConfigure = "configureFlagsArray=(\"CFLAGS=-O0 -g\")";


svn path=/nixpkgs/trunk/; revision=6863
2006-10-26 22:20:25 +00:00
..
admin/tightvnc * Copy a bunch of files to nix.cs.uu.nl. 2006-10-12 13:50:54 +00:00
archivers * GNU tar 1.16. 2006-10-24 17:24:46 +00:00
compression * Hook variables in the generic builder are now executed using eval. 2006-10-26 22:20:25 +00:00
graphics * Copy a bunch of files to nix.cs.uu.nl. 2006-10-12 13:50:54 +00:00
misc * bash 2.0, findutils 4.2.28. 2006-10-24 23:05:12 +00:00
networking * More simplification. 2006-10-24 23:07:37 +00:00
security * More URLs. 2006-10-12 15:58:51 +00:00
system/which * Glibc 2.3.6. 2005-12-06 00:12:45 +00:00
text * bash 2.0, findutils 4.2.28. 2006-10-24 23:05:12 +00:00
typesetting * Copy a bunch of files to nix.cs.uu.nl. 2006-10-12 13:50:54 +00:00
video/mjpegtools
X11/xauth * Copy even more files (in particular from losser.st-lab.cs.uu.nl, 2006-01-30 16:11:00 +00:00