add json-to-nix script
This commit is contained in:
parent
732b0ecfa0
commit
523083b6dc
4
scripts/json-to-nix.sh
Executable file
4
scripts/json-to-nix.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p nixfmt-rfc-style
|
||||
|
||||
nix-instantiate --eval -E "builtins.fromJSON (builtins.readFile "$(realpath $1)")" | nixfmt
|
Loading…
x
Reference in New Issue
Block a user