These files will be integrated into the evaluator unit tests instead of running separately via a shell script. Change-Id: I1d229e73b1d862777f5108c86891689900edefbe Reviewed-on: https://cl.tvl.fyi/c/depot/+/1275 Tested-by: BuildkiteCI Reviewed-by: Kane York <rikingcoding@gmail.com> Reviewed-by: isomer <isomer@tvl.fyi>
29 lines
593 B
Nix
29 lines
593 B
Nix
let
|
|
|
|
pkgs_ = with pkgs; {
|
|
a = derivation {
|
|
name = "a";
|
|
system = builtins.currentSystem;
|
|
builder = "/bin/sh";
|
|
args = [ "-c" "touch $out" ];
|
|
inherit b;
|
|
};
|
|
|
|
b = derivation {
|
|
name = "b";
|
|
system = builtins.currentSystem;
|
|
builder = "/bin/sh";
|
|
args = [ "-c" "touch $out" ];
|
|
inherit a;
|
|
};
|
|
|
|
c = b;
|
|
};
|
|
|
|
packageOverrides = pkgs: with pkgs; {
|
|
b = derivation (b.drvAttrs // { name = "${b.name}-overridden"; });
|
|
};
|
|
|
|
pkgs = pkgs_ // (packageOverrides pkgs_);
|
|
|
|
in "${pkgs.a.b.name} ${pkgs.c.name} ${pkgs.b.a.name}"
|