diff --git a/scripts/json-to-nix.sh b/scripts/json-to-nix.sh new file mode 100755 index 0000000..ccbfd30 --- /dev/null +++ b/scripts/json-to-nix.sh @@ -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