NixOS / nix.dev

Official documentation for getting things done with Nix.
https://nix.dev
Creative Commons Attribution Share Alike 4.0 International
2.48k stars 249 forks source link

`lib` unused binding in hello.nix #974

Closed stablejoy closed 4 months ago

stablejoy commented 5 months ago

We apply lib.fakeSha256 to get the right hash. But, upon removing lib.fakeSha256, the lib in the argument set becomes an unused binding. Should we delete it from the arguments then? Should there be something written in the tutorial that explains it? Also later the hello.nix is copied into icat.nix where the unbinding issue remains.

fricklerhandwerk commented 5 months ago

It would also be fine to remove the lib.fakeHash altogether and replace it with the Nixpkgs manual recommendation to use the empty string: https://nixos.org/manual/nixpkgs/unstable/#chap-pkgs-fetchers-caveats