Reformat and add formatters to nix env
This commit is contained in:
parent
055d5ea784
commit
325493f5ab
10 changed files with 22 additions and 53 deletions
|
@ -10,13 +10,9 @@
|
|||
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
overlays = [
|
||||
(import rust-overlay)
|
||||
];
|
||||
overlays = [ (import rust-overlay) ];
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
inherit system overlays;
|
||||
};
|
||||
pkgs = import nixpkgs { inherit system overlays; };
|
||||
|
||||
rust = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
|
||||
|
||||
|
@ -30,15 +26,12 @@
|
|||
|
||||
devShells = {
|
||||
default = mkShell {
|
||||
buildInputs = [
|
||||
rust
|
||||
] ++ helpers;
|
||||
buildInputs = [ rust ] ++ helpers;
|
||||
|
||||
shellHook = ''
|
||||
${rust}/bin/cargo --version
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue