Reformat and add formatters to nix env

This commit is contained in:
Luc Perkins 2022-07-29 00:11:05 +02:00
parent 055d5ea784
commit 325493f5ab
No known key found for this signature in database
GPG key ID: 4F102D0C16E232F2
10 changed files with 22 additions and 53 deletions

View file

@ -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
'';
};
};
}
);
});
}