2022-08-25 14:44:17 +02:00
|
|
|
{ depot, pkgs, lib, ... }:
|
2022-08-12 14:32:14 +02:00
|
|
|
|
2022-10-02 20:28:04 +02:00
|
|
|
lib.fix (self: depot.third_party.naersk.buildPackage (lib.fix (naerskArgs: {
|
2022-09-04 19:09:30 +02:00
|
|
|
src = depot.third_party.gitignoreSource ./.;
|
|
|
|
# see https://github.com/nix-community/naersk/issues/169
|
|
|
|
root = depot.nix.sparseTree ./. [ ./Cargo.lock ./Cargo.toml ];
|
|
|
|
|
2022-08-24 23:27:35 +02:00
|
|
|
doCheck = true;
|
2022-08-25 14:44:17 +02:00
|
|
|
|
2022-09-03 17:42:27 +02:00
|
|
|
# Tell the test suite where to find upstream nix, to compare eval results
|
|
|
|
# against
|
|
|
|
NIX_INSTANTIATE_BINARY_PATH = "${pkgs.nix}/bin/nix-instantiate";
|
|
|
|
|
2022-08-25 14:44:17 +02:00
|
|
|
meta.ci.targets = builtins.attrNames self.passthru;
|
|
|
|
|
2022-10-02 20:28:04 +02:00
|
|
|
passthru.benchmarks = depot.third_party.naersk.buildPackage (naerskArgs // {
|
|
|
|
name = "tvix-eval-benchmarks";
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
cargoBuildOptions = opts: opts ++ [ "--benches" ];
|
|
|
|
|
|
|
|
copyBinsFilter = ''
|
|
|
|
select(.reason == "compiler-artifact" and any(.target.kind[] == "bench"; .))
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = { };
|
|
|
|
});
|
|
|
|
}))
|
2022-08-25 14:44:17 +02:00
|
|
|
)
|