mirror of
https://github.com/numtide/treefmt.git
synced 2024-08-17 04:40:27 +03:00
minimize treefmt rebuild
This commit is contained in:
parent
ac9fbe6bf9
commit
51826cc342
10
default.nix
10
default.nix
@ -15,7 +15,15 @@ let
|
||||
treefmt = rustPackages.rustPlatform.buildRustPackage {
|
||||
inherit (cargoToml.package) name version;
|
||||
|
||||
src = nixpkgs.lib.cleanSource ./.;
|
||||
src = builtins.path {
|
||||
path = ./.;
|
||||
filter = name: type:
|
||||
name == toString ./Cargo.toml
|
||||
|| name == toString ./Cargo.lock
|
||||
|| lib.hasPrefix (toString ./src) name
|
||||
|| lib.hasPrefix (toString ./benches) name
|
||||
;
|
||||
};
|
||||
|
||||
buildInputs = with nixpkgs; lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security libiconv ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user