13 lines
305 B
Nix
13 lines
305 B
Nix
|
{pkgs, ...}: {
|
||
|
script = pkgs.writeShellScript "nano-lint-nix.sh" ''
|
||
|
#!/usr/bin/env bash
|
||
|
set -uxeo pipefail
|
||
|
|
||
|
env SCRIPT_LIB_DIR=${builtins.path {
|
||
|
path = ./.;
|
||
|
filter = path: type:
|
||
|
path == toString ./statix-to-nano-linter.jq;
|
||
|
}} bash ${./statix-nano-lint.sh} $@
|
||
|
'';
|
||
|
}
|