Commit missing test files

This commit is contained in:
Graham Christensen 2018-03-11 07:18:19 -04:00
parent b596e4a96a
commit fd51454ecb
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -0,0 +1,34 @@
let
nix = import <nix/config.nix>;
in rec {
success = derivation {
name = "success";
system = builtins.currentSystem;
builder = nix.shell;
args = [
"-c"
"echo hi; echo ${toString builtins.currentTime} > $out" ];
};
failed = derivation {
name = "failed";
system = builtins.currentSystem;
builder = nix.shell;
args = [
"-c"
"echo hi; echo ${toString builtins.currentTime}; echo ${success}" ];
};
passes-instantiation = derivation {
name = "passes-instantiation";
system = builtins.currentSystem;
builder = nix.shell;
args = [
"-c"
"echo this ones cool" ];
};
fails-instantiation = assert builtins.trace ''
You just can't frooble the frozz on this particular system.
'' false; {};
}