Most of the ecosystem has moved to this formatter, and many people configured their editors to autoformat it with this formatter. Closes: https://git.snix.dev/snix/snix/issues/62 Change-Id: Icf39e7836c91fc2ae49fbe22a40a639105bfb0bd Reviewed-on: https://cl.snix.dev/c/snix/+/30671 Reviewed-by: Florian Klink <flokli@flokli.de> Tested-by: besadii Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
27 lines
701 B
Nix
27 lines
701 B
Nix
# TODO: find a way to build the benchmarks via crate2nix
|
|
{
|
|
depot,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
(depot.snix.crates.workspaceMembers.snix-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.snix.utils.mkFeaturePowerset {
|
|
inherit (old) crateName;
|
|
features = [ "nix_tests" ];
|
|
override.testInputs = [ pkgs.nix ];
|
|
});
|
|
})
|