e21b6b6ee5
* Some fetchurl-related refactoring. The `realCurl' attribute is gone, `curl' is the real thing. To prevent an infinite recursion in `fetchurl' (because it depends on curl and building curl needs fetchurl), curl and its dependencies (openssl, zlib, perl) use `fetchurlBoot', which is the fetchurl used by the previous bootstrap phase (e.g. the statically linked version of curl for stdenv-linux). So as a result you can use https:// urls almost everywhere. There's also some hackery to prevent a different curl from being built in every stdenv-linux bootstrap phase (namely the stdenv.fetchurl attribute which allows fetchurl to be overriden everywhere). svn path=/nixpkgs/trunk/; revision=11905
26 lines
472 B
Nix
26 lines
472 B
Nix
{stdenv, genericStdenv, gccWrapper}:
|
|
|
|
genericStdenv {
|
|
name = "stdenv-native";
|
|
preHook = ./prehook.sh;
|
|
initialPath = "/usr/local /usr /";
|
|
|
|
inherit stdenv;
|
|
|
|
gcc = gccWrapper {
|
|
name = "gcc-native";
|
|
nativeTools = true;
|
|
nativeLibc = true;
|
|
nativePrefix = "/usr";
|
|
inherit stdenv;
|
|
};
|
|
|
|
shell = "/bin/bash";
|
|
|
|
fetchurlBoot = import ../../build-support/fetchurl {
|
|
inherit stdenv;
|
|
# Curl should be in /usr/bin or so.
|
|
curl = null;
|
|
};
|
|
}
|