Closed jd1t25 closed 2 months ago
Oh damn, nix-instantiate
doesn't do autocall like nix-build
and nix-shell
.
This sucks. But we don't have to change the default argument, because that's still useful if you end up building derivations. Just the command line invocation becomes cumbersome and introduces redundancy:
nix-shell -p jq --run "nix-instantiate --eval --json --strict --arg pkgs 'import <nixpkgs> {}' | jq"
Hi again, while continuing following and learning , under Section modules
when you run script "./eval.bash" it shows
can we convert function to json in nix? ( did i miss something ) so i just declared pkgs inside "let .... in" block
after executing it shows
after reading wiki , i followed with --strict
now it does show the expected output.
Please check on your end , i did double check about the error and also there might be better solution than this