meta: refactor repository
This commit is contained in:
parent
a306e192a4
commit
599fe1903f
28 changed files with 276 additions and 136 deletions
10
templates/rust/nix/formatter.nix
Normal file
10
templates/rust/nix/formatter.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ writeShellApplication, fd, nixfmt, deadnix, statix, rustfmt }:
|
||||
writeShellApplication {
|
||||
name = "liner";
|
||||
runtimeInputs = [ fd nixfmt deadnix statix rustfmt ];
|
||||
text = ''
|
||||
fd -e nix -X nixfmt {} \; -X deadnix -e {} \;
|
||||
fd -e nix -x statix fix {} \;
|
||||
fd -e rs -X rustfmt {} \;
|
||||
'';
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{ rustPlatform }: let
|
||||
pname = "rust-app";
|
||||
version = "0.1.0";
|
||||
{ rustPlatform }:
|
||||
let
|
||||
pname = "CHANGE_NAME";
|
||||
version = "CHANGE_VER";
|
||||
in rustPlatform.buildRustPackage {
|
||||
inherit pname version;
|
||||
src = ../.;
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
{ mkShell, rust-app, rust-bin }:
|
||||
{ mkShell, rustc, cargo, nixfmt, deadnix, statix, rustfmt, clippy }:
|
||||
mkShell {
|
||||
name = "Rust Rivers";
|
||||
inputsFrom = [ rust-app ];
|
||||
buildInputs = [
|
||||
rust-bin.stable.latest.default
|
||||
];
|
||||
name = "rust";
|
||||
packages = [ nixfmt deadnix statix rustfmt clippy rustc cargo ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue