feat: add formatter for Nix files
This commit is contained in:
parent
4962bd5189
commit
03ae4c610e
41
flake.nix
41
flake.nix
@ -13,8 +13,15 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
|
outputs =
|
||||||
flake-utils.lib.eachSystem ["x86_64-linux"] (system:
|
{
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
flake-utils,
|
||||||
|
rust-overlay,
|
||||||
|
}:
|
||||||
|
flake-utils.lib.eachSystem [ "x86_64-linux" ] (
|
||||||
|
system:
|
||||||
let
|
let
|
||||||
overlays = [ (import rust-overlay) ];
|
overlays = [ (import rust-overlay) ];
|
||||||
pkgs = import nixpkgs { inherit system overlays; };
|
pkgs = import nixpkgs { inherit system overlays; };
|
||||||
@ -31,20 +38,24 @@
|
|||||||
cargoLock.lockFile = ./Cargo.lock;
|
cargoLock.lockFile = ./Cargo.lock;
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
packages.rustPackage = appRustBuild;
|
{
|
||||||
|
packages.pumoSystemInfo = appRustBuild;
|
||||||
|
formatter = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
|
||||||
defaultPackage = appRustBuild;
|
defaultPackage = appRustBuild;
|
||||||
devShell = with pkgs; mkShell {
|
devShell =
|
||||||
buildInputs = [
|
with pkgs;
|
||||||
bacon
|
mkShell {
|
||||||
cargo
|
buildInputs = [
|
||||||
cargo-deny
|
bacon
|
||||||
cargo-msrv
|
cargo
|
||||||
cargo-tarpaulin
|
cargo-deny
|
||||||
just
|
cargo-msrv
|
||||||
rustVersion
|
cargo-tarpaulin
|
||||||
];
|
just
|
||||||
};
|
rustVersion
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user