1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

Merge pull request #9415 from NixOS/fix-dynamic-derivations

Revert "Revert "Adapt scheduler to work with dynamic derivations
This commit is contained in:
Robert Hensing 2025-02-16 23:59:39 +01:00 committed by GitHub
commit 07f853b295
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 397 additions and 42 deletions

View file

@ -13,6 +13,7 @@ rec {
echo "Hello World" > $out/hello
'';
};
producingDrv = mkDerivation {
name = "hello.drv";
buildCommand = ''
@ -23,6 +24,7 @@ rec {
outputHashMode = "text";
outputHashAlgo = "sha256";
};
wrapper = mkDerivation {
name = "use-dynamic-drv-in-non-dynamic-drv";
buildCommand = ''
@ -30,4 +32,12 @@ rec {
cp -r ${builtins.outputOf producingDrv.outPath "out"} $out
'';
};
failingWrapper = mkDerivation {
name = "use-dynamic-drv-in-non-dynamic-drv-wrong";
buildCommand = ''
echo "Fail at copying the output of the dynamic derivation"
fail ${builtins.outputOf producingDrv.outPath "out"} $out
'';
};
}