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, go }:
writeShellApplication {
name = "linter";
runtimeInputs = [ fd nixfmt deadnix statix go ];
text = ''
fd -e nix -X nixfmt {} \; -X deadnix -e {} \;
fd -e nix -x statix fix {} \;
fd -e rs -X go fmt {} \; -X go vet {} \;
'';
}

View file

@ -0,0 +1,9 @@
{ buildGoModule }:
let
pname = "CHANGE_ME";
version = "CHANGE_VER";
in buildGoModule {
inherit pname version;
src = ../.;
vendorHash = null;
}

View file

@ -0,0 +1,9 @@
{ mkShell, go, gopls, go-tools }:
mkShell {
name = "go";
packages = [
go
gopls
go-tools
];
}