mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
9f9984e4d0
This tests the Nix language side of things. We are purposely skipping most of `common.sh` because it is overkill for this test: we don't want to have an "overfit" test environment. Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
34 lines
812 B
Nix
34 lines
812 B
Nix
let
|
|
system = "my-system";
|
|
foo = derivation {
|
|
inherit system;
|
|
name = "foo";
|
|
builder = "/bin/bash";
|
|
args = ["-c" "echo foo > $out"];
|
|
};
|
|
bar = derivation {
|
|
inherit system;
|
|
name = "bar";
|
|
builder = "/bin/bash";
|
|
args = ["-c" "echo bar > $out"];
|
|
};
|
|
in
|
|
derivation {
|
|
inherit system;
|
|
name = "advanced-attributes";
|
|
builder = "/bin/bash";
|
|
args = [ "-c" "echo hello > $out" ];
|
|
__sandboxProfile = "sandcastle";
|
|
__noChroot = true;
|
|
__impureHostDeps = ["/usr/bin/ditto"];
|
|
impureEnvVars = ["UNICORN"];
|
|
__darwinAllowLocalNetworking = true;
|
|
allowedReferences = [foo];
|
|
allowedRequisites = [foo];
|
|
disallowedReferences = [bar];
|
|
disallowedRequisites = [bar];
|
|
requiredSystemFeatures = ["rainbow" "uid-range"];
|
|
preferLocalBuild = true;
|
|
allowSubstitutes = false;
|
|
}
|