actually call statix-nano
This commit is contained in:
parent
31e83ba28f
commit
51e8921e96
|
@ -9,7 +9,7 @@
|
||||||
then inputs.nixosConfig.programs.nano.package
|
then inputs.nixosConfig.programs.nano.package
|
||||||
else pkgs.nano;
|
else pkgs.nano;
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [package deadnix statix ];
|
home.packages = with pkgs; [package deadnix statix jq];
|
||||||
systemd.user.tmpfiles.rules = [
|
systemd.user.tmpfiles.rules = [
|
||||||
"d ${config.xdg.cacheHome}/nano - ${config.home.username} users"
|
"d ${config.xdg.cacheHome}/nano - ${config.home.username} users"
|
||||||
];
|
];
|
||||||
|
@ -48,6 +48,7 @@ in {
|
||||||
in ''
|
in ''
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -uxeo pipefail
|
set -uxeo pipefail
|
||||||
|
${statix-nano.script} $@
|
||||||
deadnix $@ -o json | jq -r '.file as $filename | .results | .[] | $filename + ":" + (.line|tostring) + ":" + (.column|tostring) + ": " + .message'
|
deadnix $@ -o json | jq -r '.file as $filename | .results | .[] | $filename + ":" + (.line|tostring) + ":" + (.column|tostring) + ": " + .message'
|
||||||
'')}
|
'')}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue