nixpkgs/pkgs
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
..
applications * Move. 2006-10-24 08:07:15 +00:00
build-support * Put a symlink to the assembler in the GCC wrapper. Otherwise, when 2006-10-26 20:25:31 +00:00
configs/etc d'oh, don't actually gzip it 2006-03-08 19:25:44 +00:00
data/sgml+xml * Copy a bunch of files to nix.cs.uu.nl. 2006-10-12 13:50:54 +00:00
development * Put back in the code to do a profiled GCC build, but turn in off 2006-10-26 20:23:49 +00:00
evil/belastingdienst * Purify aangifte2005. Now we can do our taxes in NixOS ;-) 2006-03-03 22:31:16 +00:00
games * `drv + /path' is deprecated, so don't do that anymore. 2006-10-17 14:06:18 +00:00
lib * More descriptions. 2006-10-12 10:53:16 +00:00
misc * `drv + /path' is deprecated, so don't do that anymore. 2006-10-17 14:06:18 +00:00
os-specific/linux * "ppc" -> "powerpc", but do copy the "ppc" directory as well. 2006-10-25 10:55:36 +00:00
servers * Update more URLs. 2006-10-12 14:53:45 +00:00
shells * Patch for a critical bug in bash. 2006-10-25 12:38:57 +00:00
stdenv * Hook variables in the generic builder are now executed using eval. 2006-10-26 22:20:25 +00:00
test * "." -> "source". 2005-12-05 14:11:09 +00:00
tools * Hook variables in the generic builder are now executed using eval. 2006-10-26 22:20:25 +00:00
top-level * Put back in the code to do a profiled GCC build, but turn in off 2006-10-26 20:23:49 +00:00