nixpkgs/pkgs/stdenv
Eelco Dolstra 892b119c9d * It is now possible to execute a builder using a shell inside the Nix
store, rather than outside (such as /bin/sh).

  For instance, the Nix expression for the ATerm library now looks
  like this:

    {stdenv, fetchurl}:

    stdenv.mkDerivation {
      name = "aterm-2.0.5";
      builder = ./builder.sh;
      ...
    }

  where `mkDerivation' is a helper function in `stdenv' that massages
  the given attribute set into using the bash shell that is part of
  the standard environment:

    mkDerivation = attrs: derivation (att s // {
      builder = pkgs.bash ~ /bin/sh;
      args = ["-e" attrs.builder];
      stdenv = (...);
      system = (...).system;
    });

  Note that this makes it unnecessary to set the `stdenv' and `system'
  attributes, since `mkDerivation' already does that.


svn path=/nixpkgs/trunk/; revision=866
2004-03-28 21:07:43 +00:00
..
generic * Use $propagatedBuildInputs to find build inputs. 2004-03-27 22:09:34 +00:00
initial * Started reorganising stdenv: 2004-03-08 16:02:46 +00:00
native * Finally got stdenv-nix-linux working again. Still not perfect, 2004-03-11 17:26:14 +00:00
nix * The stdenv setup script now defines a generic builder that allows 2004-03-19 16:53:04 +00:00
nix-linux * It is now possible to execute a builder using a shell inside the Nix 2004-03-28 21:07:43 +00:00