nixfiles/extras/statix-nano/statix-nano-lint.nix

13 lines
306 B
Nix
Raw Normal View History

{pkgs, ...}: {
script = pkgs.writeShellScript "nano-lint-nix.sh" ''
#!/usr/bin/env bash
set -uxeo pipefail
env SCRIPT_LIB_DIR=${builtins.path {
path = ./.;
2024-03-19 15:43:12 +00:00
filter = path: _type:
path == toString ./statix-to-nano-linter.jq;
}} bash ${./statix-nano-lint.sh} $@
'';
}