mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-08 14:00:37 +00:00
Reuse Nix-built Cargo deps throughout flake
This commit is contained in:
parent
ec19d0d595
commit
ff0b92300a
@ -45,10 +45,8 @@
|
|||||||
|
|
||||||
craneLib = crane.lib.${system};
|
craneLib = crane.lib.${system};
|
||||||
src = pkgs.lib.cleanSourceWith {
|
src = pkgs.lib.cleanSourceWith {
|
||||||
src = craneLib.path ./.; # original, unfiltered source
|
src = craneLib.path ./.;
|
||||||
filter = path: type:
|
filter = pkgs.lib.cleanSourceFilter;
|
||||||
(builtins.match ".*jsonc$" path != null) # include JSONC files
|
|
||||||
|| (craneLib.filterCargoSources path type);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with pkgs;
|
buildInputs = with pkgs;
|
||||||
@ -115,7 +113,7 @@
|
|||||||
# NB: cargo-tarpaulin only supports x86_64 systems
|
# NB: cargo-tarpaulin only supports x86_64 systems
|
||||||
# Check code coverage (note: this will not upload coverage anywhere)
|
# Check code coverage (note: this will not upload coverage anywhere)
|
||||||
rga-coverage =
|
rga-coverage =
|
||||||
craneLib.cargoTarpaulin { inherit cargoArtifacts src; };
|
craneLib.cargoTarpaulin { inherit buildInputs cargoArtifacts src; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# `nix build`
|
# `nix build`
|
||||||
|
Loading…
Reference in New Issue
Block a user