summaryrefslogtreecommitdiff
path: root/ofborg/tickborg/test-srcs/eval/default.nix
blob: e95f0ddca80bd09918f3d26b9011e3cda0ee86de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
let
  builder = builtins.storePath <ofborg-test-bash>;
in
rec {
  success = derivation {
    name = "success";
    system = builtins.currentSystem;
    inherit builder;
    args = [ "-c" "echo hi; echo ${toString builtins.currentTime} > $out" ];
  };

  failed = derivation {
    name = "failed";
    system = builtins.currentSystem;
    inherit builder;
    args = [ "-c" "echo hi; echo ${toString builtins.currentTime}; echo ${success}" ];
  };
}