2022-12-07 12:05:02 +01:00
|
|
|
# TODO: find a way to build the benchmarks via crate2nix
|
2024-05-26 16:27:10 +02:00
|
|
|
{ depot, pkgs, lib, ... }:
|
2022-08-12 14:32:14 +02:00
|
|
|
|
2024-05-26 16:27:10 +02:00
|
|
|
(depot.tvix.crates.workspaceMembers.tvix-eval.build.override {
|
2022-12-07 12:05:02 +01:00
|
|
|
runTests = true;
|
2022-09-04 19:09:30 +02:00
|
|
|
|
2022-12-07 12:05:02 +01:00
|
|
|
# Make C++ Nix available, to compare eval results against.
|
|
|
|
testInputs = [ pkgs.nix ];
|
2024-05-26 16:27:10 +02:00
|
|
|
}).overrideAttrs (old: rec {
|
|
|
|
meta.ci.targets = lib.filter (x: lib.hasPrefix "with-features" x || x == "no-features") (lib.attrNames passthru);
|
|
|
|
passthru = depot.tvix.utils.mkFeaturePowerset {
|
|
|
|
inherit (old) crateName;
|
|
|
|
features = [ "nix_tests" ];
|
|
|
|
override.testInputs = [ pkgs.nix ];
|
|
|
|
};
|
|
|
|
})
|