Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pkgs/build-support/fetchgit/tests.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
stdenv,
config,
runCommand,
testers,
fetchgit,
Expand Down Expand Up @@ -239,8 +241,11 @@
withGitConfig =
let
pkgs = import ../../.. {
config.gitConfig = {
url."https://github.com".insteadOf = "https://doesntexist.forsure";
system = stdenv.hostPlatform.system;
config = config // {
gitConfig = {
url."https://github.com".insteadOf = "https://doesntexist.forsure";
};
};
};
in
Expand Down
3 changes: 2 additions & 1 deletion pkgs/test/config.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
lib,
config,
pkgs,
...
}:
Expand All @@ -17,7 +18,7 @@ lib.recurseIntoAttrs {
let
pkgs' = import ../.. {
system = pkgs.stdenv.hostPlatform.system;
config = {
config = config // {
permittedInsecurePackages = builtins.seq pkgs'.glibc.version [ ];
};
};
Expand Down
7 changes: 6 additions & 1 deletion pkgs/test/cross/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{ pkgs, lib }:
{
pkgs,
config,
lib,
}:

let

Expand Down Expand Up @@ -78,6 +82,7 @@ let
crossPkgs = import pkgs.path {
localSystem = { inherit (pkgs.stdenv.hostPlatform) config; };
crossSystem = crossSystemFun system;
inherit config;
};

emulator = crossPkgs.stdenv.hostPlatform.emulator pkgs;
Expand Down
3 changes: 2 additions & 1 deletion pkgs/test/stdenv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
stdenv,
pkgs,
lib,
config,
testers,
}:

Expand All @@ -20,7 +21,7 @@ let
# use a early stdenv so when hacking on stdenv this test can be run quickly
bootStdenv = earlyPkgs.stdenv.__bootPackages.stdenv.__bootPackages.stdenv or earlyPkgs.stdenv;
pkgsStructured = import pkgs.path {
config = {
config = config // {
structuredAttrsByDefault = true;
};
inherit (stdenv.hostPlatform) system;
Expand Down
Loading