add json-to-nix script

This commit is contained in:
Dmitriy Kholkin 2024-06-30 13:53:40 +03:00
parent 732b0ecfa0
commit 523083b6dc
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2

4
scripts/json-to-nix.sh Executable file
View 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