···55stdenv.mkDerivation {
66 name = "fossil-archive" + (if name != null then "-${name}" else "");
77 builder = ./builder.sh;
88- buildInputs = [fossil];
88+ nativeBuildInputs = [fossil];
991010 # Envvar docs are hard to find. A link for the future:
1111 # https://www.fossil-scm.org/index.html/doc/trunk/www/env-opts.md
+5-5
pkgs/build-support/fetchgit/default.nix
···11-{stdenv, git, cacert}: let
11+{stdenvNoCC, git, cacert}: let
22 urlToName = url: rev: let
33- inherit (stdenv.lib) removeSuffix splitString last;
33+ inherit (stdenvNoCC.lib) removeSuffix splitString last;
44 base = last (splitString ":" (baseNameOf (removeSuffix "/" url)));
5566 matched = builtins.match "(.*).git" base;
···4848if md5 != "" then
4949 throw "fetchgit does not support md5 anymore, please use sha256"
5050else
5151-stdenv.mkDerivation {
5151+stdenvNoCC.mkDerivation {
5252 inherit name;
5353 builder = ./builder.sh;
5454 fetcher = "${./nix-prefetch-git}"; # This must be a string to ensure it's called with bash.
5555- buildInputs = [git];
5555+ nativeBuildInputs = [git];
56565757 outputHashAlgo = "sha256";
5858 outputHashMode = "recursive";
···62626363 GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
64646565- impureEnvVars = stdenv.lib.fetchers.proxyImpureEnvVars ++ [
6565+ impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars ++ [
6666 "GIT_PROXY_COMMAND" "SOCKS_SERVER"
6767 ];
6868
···11-{ stdenv, curl }: # Note that `curl' may be `null', in case of the native stdenv.
11+{ stdenvNoCC, curl }: # Note that `curl' may be `null', in case of the native stdenvNoCC.
2233let
44···1010 # resulting store derivations (.drv files) much smaller, which in
1111 # turn makes nix-env/nix-instantiate faster.
1212 mirrorsFile =
1313- stdenv.mkDerivation ({
1313+ stdenvNoCC.mkDerivation ({
1414 name = "mirrors-list";
1515 builder = ./write-mirror-list.sh;
1616 preferLocalBuild = true;
···2020 # "gnu", etc.).
2121 sites = builtins.attrNames mirrors;
22222323- impureEnvVars = stdenv.lib.fetchers.proxyImpureEnvVars ++ [
2323+ impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars ++ [
2424 # This variable allows the user to pass additional options to curl
2525 "NIX_CURL_FLAGS"
2626···103103in
104104105105if md5 != "" then throw "fetchurl does not support md5 anymore, please use sha256 or sha512"
106106-else if (!hasHash) then throw "Specify hash for fetchurl fixed-output derivation: ${stdenv.lib.concatStringsSep ", " urls_}"
107107-else stdenv.mkDerivation {
106106+else if (!hasHash) then throw "Specify hash for fetchurl fixed-output derivation: ${stdenvNoCC.lib.concatStringsSep ", " urls_}"
107107+else stdenvNoCC.mkDerivation {
108108 name =
109109 if showURLs then "urls"
110110 else if name != "" then name
···112112113113 builder = ./builder.sh;
114114115115- buildInputs = [ curl ];
115115+ nativeBuildInputs = [ curl ];
116116117117 urls = urls_;
118118