aboutsummaryrefslogtreecommitdiffstats
path: root/flake.nix
Commit message (Collapse)AuthorAgeFilesLines
* populate: layer populate below kropstv10 hours1-1/+2
| | | | | | | | | | | | | | | | | | populate is a program of its own, with a Nix library, in pkgs/populate, which krops uses, and which doesn't use krops: - default.nix builds the program, with nix-build there or callPackage, as pkgs.populate-unwrapped. - lib is populate's Nix library: the types of sources and the POSIX types they use, evalSource, flakeFollows, hasGeneratedFlake, and derivesFlake, taking nixpkgs' lib. krops' lib takes them from there, so it provides them as before, and so does lib/types. pkgs.populate, the function from populate's arguments to a script running the program, is krops' own, in pkgs/krops/populate.nix, with checks.nix next to it. It takes the program as populate-unwrapped, which callPackage passes from the overlay; the flake, whose nixpkgs lacks it, passes its own.
* flake: pass populate to krops, describe using krops from a flaketv2 days1-1/+1
| | | | | | | | | | | pkgs/krops takes populate as an argument, which nixpkgs doesn't provide, so evaluating any of the flake's lib attributes from pkgs/krops fails. The flake passes its own populate. The README describes using krops from a flake: writeDeploy and the other functions from lib.<system>, evalSource and mkTarget from krops' lib directory, and deploying with nix run --impure, because krops' lib evaluates <nixpkgs/lib>, environment variables, and /etc/hostname.
* init flake.nixlassulus2023-07-221-0/+29