mirror of
https://github.com/anotherhadi/jwt-tui.git
synced 2026-06-26 01:02:33 +02:00
f3dce1f4ab
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
41 lines
820 B
Nix
41 lines
820 B
Nix
{
|
|
pkgs,
|
|
gitHooksLib,
|
|
gomod2nixPkgs,
|
|
}: let
|
|
hooks = gitHooksLib.run {
|
|
src = ../.;
|
|
hooks = {
|
|
gofmt.enable = true;
|
|
govet.enable = true;
|
|
gomod2nix = {
|
|
enable = true;
|
|
name = "gomod2nix";
|
|
entry = "gomod2nix --outdir ./nix";
|
|
language = "system";
|
|
files = "go\\.(mod|sum)$";
|
|
pass_filenames = false;
|
|
};
|
|
|
|
inject-exec = {
|
|
enable = true;
|
|
name = "inject-exec";
|
|
entry = "python3 .github/scripts/inject-exec.py README.md";
|
|
language = "system";
|
|
files = "(README\\.md|cmd/)";
|
|
pass_filenames = false;
|
|
};
|
|
};
|
|
};
|
|
in
|
|
pkgs.mkShell {
|
|
packages = with pkgs;
|
|
[
|
|
go
|
|
gomod2nixPkgs.gomod2nix
|
|
]
|
|
++ hooks.enabledPackages;
|
|
|
|
shellHook = hooks.shellHook;
|
|
}
|