Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Upgrade throws error in stdlib-extended #3928

Closed
2 tasks done
farnoy opened this issue Apr 28, 2023 · 2 comments
Closed
2 tasks done

bug: Upgrade throws error in stdlib-extended #3928

farnoy opened this issue Apr 28, 2023 · 2 comments
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@farnoy
Copy link

farnoy commented Apr 28, 2023

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

I'm using NixOS stable 22.11 and HM installed as a NixOS module in a single flake. After upgrading both nixpkgs and HM, I started seeing an error in stdlib-extended.nix from HM.

• Updated input 'home-manager':
    'github:nix-community/home-manager/bf5712c5865e543fb3f4796511d4cf51efd841b1' (2023-03-11)
  → 'github:nix-community/home-manager/43ba4489bd3f9f69519f5f7ebdb76d0455eccbbe' (2023-04-28)
• Removed input 'home-manager/utils'
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/5eb98948b66de29f899c7fe27ae112a47964baf8' (2023-03-11)
  → 'github:NixOS/nixpkgs/15b75800dce80225b44f067c9012b09de37dfad2' (2023-04-26)

Started throwing this error:

error: attribute 'extend' missing

       at /nix/store/bmxyjabn7zj054239gyx3kga44wi8v91-source/modules/lib/stdlib-extended.nix:7:4:

            6| let mkHmLib = import ./.;
            7| in nixpkgsLib.extend (self: super: {
             |    ^
            8|   hm = mkHmLib { lib = self; };
       Did you mean extends?

Seems to make sense, as nixpkgs has had extends for a long time and at least in the nixos-22.11 branch, those exports for nixpkgs.lib haven't changed in the past 3 months.

Maintainer CC

No response

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.1.16, NixOS, 22.11 (Raccoon), 22.11.20230311.5eb9894`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.1`
 - channels(root): `"home-manager, nixos"`
 - channels(kuba): `"home-manager, nixpkgs"`
 - nixpkgs: `/home/kuba/.nix-defexpr/channels/nixpkgs`
@farnoy farnoy added bug triage Issues or feature request that have not been triaged yet labels Apr 28, 2023
@ncfavier
Copy link
Member

You should use the branch of home-manager corresponding to your branch of nixpkgs, in this case release-21.11. See https://github.com/nix-community/home-manager#releases

@ncfavier ncfavier closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2023
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixos-rebuild-fails-with-current-configuration/27678/3

bct added a commit to bct/nix-config that referenced this issue Nov 2, 2023
using home-manager as a nixos module was failing.

according to nix-community/home-manager#3928
home-manager should use the same release as nixpkgs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

6 participants