2024-03-19 14:54:30 +00:00
|
|
|
{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:
|
2024-03-19 14:54:30 +00:00
|
|
|
path == toString ./statix-to-nano-linter.jq;
|
|
|
|
}} bash ${./statix-nano-lint.sh} $@
|
|
|
|
'';
|
|
|
|
}
|