1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

EvalState::realiseContext(): Allow access to the entire closure

Fixes #11030.
This commit is contained in:
Eelco Dolstra 2024-12-13 16:49:48 +01:00
parent 18770c7e18
commit 08361f031d
5 changed files with 44 additions and 10 deletions

View file

@ -1,4 +1,4 @@
with import ./config.nix;
with import <config>;
rec {
bar = mkDerivation {
@ -30,4 +30,23 @@ rec {
echo -n BLA$(cat $src) > $out
'';
};
step1 = mkDerivation {
name = "step1";
buildCommand = ''
mkdir -p $out
echo 'foo' > $out/bla
'';
};
addPathExpr = mkDerivation {
name = "add-path";
inherit step1;
buildCommand = ''
mkdir -p $out
echo "builtins.path { path = \"$step1\"; sha256 = \"7ptL+pnrZXnSa5hwwB+2SXTLkcSb5264WGGokN8OXto=\"; }" > $out/default.nix
'';
};
importAddPathExpr = import addPathExpr;
}