meta: refactor repository

This commit is contained in:
Artur Manuel 2025-03-26 15:08:13 +00:00
commit 599fe1903f
Signed by: amadaluzia
SSH key fingerprint: SHA256:Zwg7gBuZyaG48ucAZneJwltiXu0+tJb7c3lYt9AYlLg
28 changed files with 276 additions and 136 deletions

View 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 {} \;
'';
}

View file

@ -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 = ../.;

View file

@ -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 ];
}