Recently I used nix as template engine (called it from bash with nix eval --expr --impure).
So really it was nix flake app -> bash -> nix impure. So i used nix as programming(scripting) shell language kind of.
To generate JSON from curled data.
I needed to convert string to integer, found here https://github.com/NixOS/nixpkgs/blob/master/lib/strings.nix .
What is problem?
nixpkgs is huge and I do not want light scripts like this to download and big nixpkgs.
So ideal solution for m if nixpkgs actually will have some std/core with pure evals. How it can be made? nixpkgs rexports that some repo.
So there are 2 questions, one if nixpkgs are going to split, and second, should std/core repo contain copies of nixpkgs code for starter?
At least fixed point is copied now.
Recently I used nix as template engine (called it from bash with nix eval --expr --impure).
So really it was
nix flake app -> bash -> nix impure. So i used nix as programming(scripting) shell language kind of.To generate JSON from curled data.
I needed to convert string to integer, found here https://github.com/NixOS/nixpkgs/blob/master/lib/strings.nix .
What is problem?
nixpkgs is huge and I do not want light scripts like this to download and big nixpkgs.
So ideal solution for m if nixpkgs actually will have some std/core with pure evals. How it can be made? nixpkgs rexports that some repo.
So there are 2 questions, one if nixpkgs are going to split, and second, should std/core repo contain copies of nixpkgs code for starter?
At least fixed point is copied now.