Co-Authored-By: edef <edef@edef.eu> Co-Authored-By: Ryan Lahfa <raito@lix.systems> Change-Id: I9817214c3122e49d694c5e41818622a08d9dfe45
17 lines
645 B
Nix
17 lines
645 B
Nix
# TODO: find a way to build the benchmarks via crate2nix
|
|
{ depot, pkgs, lib, ... }:
|
|
|
|
(depot.tvix.crates.workspaceMembers.tvix-eval.build.override {
|
|
runTests = true;
|
|
|
|
# Make C++ Nix available, to compare eval results against.
|
|
# This needs Nix 2.3, as nix_oracle.rs fails with pkgs.nix
|
|
testInputs = [ pkgs.nix_2_3 ];
|
|
}).overrideAttrs (old: rec {
|
|
meta.ci.targets = lib.filter (x: lib.hasPrefix "with-features" x || x == "no-features") (lib.attrNames passthru);
|
|
passthru = old.passthru // (depot.tvix.utils.mkFeaturePowerset {
|
|
inherit (old) crateName;
|
|
features = [ "nix_tests" ];
|
|
override.testInputs = [ pkgs.nix ];
|
|
});
|
|
})
|