Update flake

This commit is contained in:
Invariantspace 2024-02-12 15:12:56 -08:00
parent ee07fd48d0
commit b99d98ae43
2 changed files with 29 additions and 23 deletions

View file

@ -33,7 +33,12 @@
# MY_CUSTOM_VAR = "some value";
};
craneLibLLvmTools = craneLib.overrideToolchain fenixPkgs.complete;
craneLibLLvmTools = craneLib.overrideToolchain
(fenixPkgs.complete.withComponents [
"cargo"
"llvm-tools"
"rustc"
]);
# Build *just* the cargo dependencies, so we can reuse
# all of that work (e.g. via cachix) when running in CI
@ -92,7 +97,8 @@
packages = {
default = crate;
llvm-coverage = craneLibLLvmTools.cargoLlvmCov (commonArgs // {
} // pkgs.lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
my-crate-llvm-coverage = craneLibLLvmTools.cargoLlvmCov (commonArgs // {
inherit cargoArtifacts;
});
};