Skip to content

Forward lib from nodeNixpkgs to evalConfig#313

Open
leo60228 wants to merge 1 commit into
nix-community:mainfrom
leo60228:npkgs-lib
Open

Forward lib from nodeNixpkgs to evalConfig#313
leo60228 wants to merge 1 commit into
nix-community:mainfrom
leo60228:npkgs-lib

Conversation

@leo60228

@leo60228 leo60228 commented Sep 1, 2025

Copy link
Copy Markdown

This defaults to import "${npkgs}/lib", which if npkgs comes from a flake has a fallback lib.trivial.version like 25.11pre-git instead of the correct 25.11.20250828.dfb2f12.

@kylemanna

Copy link
Copy Markdown

Encountered this too, but this change doesn't seem to fix it for me:

$ git diff flake.nix
diff --git a/flake.nix b/flake.nix
index 41e9a45..0951a78 100644
--- a/flake.nix
+++ b/flake.nix
@@ -2,7 +2,7 @@
   description = "Master Flake";

   inputs = {
-    colmena.url = "github:zhaofengli/colmena";
+    colmena.url = "github:zhaofengli/colmena/pull/313/merge";
     colmena.inputs.nixpkgs.follows = "nixpkgs";

     disko.url = "github:nix-community/disko";
$ nix eval .#nixosConfigurations.host-a.config.system.nixos.version
"25.11.20250918.0147c2f"
$ nix eval .#colmenaHive.nodes.host-a.config.system.nixos.version
"25.11pre-git"

Am I missing something?

@leo60228

Copy link
Copy Markdown
Author

How are you specifying Nixpkgs? This still only works if you use nixpkgs.legacyPackages.${system} and not import nixpkgs, unfortunately.

@kylemanna

Copy link
Copy Markdown

This still only works if you use nixpkgs.legacyPackages.${system}

Ahh, gotcha. Updated to use legacyPackages and now this PR works for me. Thanks!

@kylemanna

Copy link
Copy Markdown

Ping any thoughts on getting this merged? Or a better way to achieve the right version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants