Replies: 2 comments
-
Maybe user should be prompted to do so in the Getting Started section of the document and in the default template. flake-parts/template/default/flake.nix Lines 5 to 6 in 3d04084 |
Beta Was this translation helpful? Give feedback.
0 replies
-
It wasn't always, but now it's only the lib tree of Nixpkgs. $ curl -L https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz | wc -c
[...]
244736 => quarter of a megabyte. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tip
tldr; Why not do this in every repo that uses flake-parts ? srid/haskell-template@b7c6606
flake-parts has its own nixpkgs input:
flake-parts/flake.nix
Line 5 in 567b938
While it calls it
nixpkgs-lib
, the actual input refers to the whole nixpkgs repo which is pretty large. This leads to yet another fetch of nixpkgs thus slowing down (due to fetch and extract of nixpkgs) the initial eval of nix commands likenix develop
.Would it not make sense for user flakes to do the following always?
Thus reducing the number of
nixpkgs
s in theflake.lock
file, viz.:Beta Was this translation helpful? Give feedback.
All reactions