nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
7.14k stars 1.85k forks source link

bug: home-manager-manual.drv fails to build #6110

Open knightpp opened 5 days ago

knightpp commented 5 days ago

Are you following the right branch?

Is there an existing issue for this?

Issue description

After update

       "locked": {
-        "lastModified": 1731235328,
-        "narHash": "sha256-NjavpgE9/bMe/ABvZpyHIUeYF1mqR5lhaep3wB79ucs=",
+        "lastModified": 1732025103,
+        "narHash": "sha256-qjEI64RKvDxRyEarY0jTzrZMa8ebezh2DEZmJJrpVdo=",
         "owner": "nix-community",
         "repo": "home-manager",
-        "rev": "60bb110917844d354f3c18e05450606a435d2d10",
+        "rev": "a46e702093a5c46e192243edbd977d5749e7f294",
         "type": "github"
       },

I can no longer build new generations

$ home-manager build
error: builder for '/nix/store/qfxwfqsfs0y9d5ipjc7y5sx6hpsl7w3y-home-manager-manual.drv' failed with exit code 1;
       last 25 log lines:
       >     - ch-contributing
       >     - sec-release-19.03
       >     - sec-release-24.05
       >     - sec-code-style
       >     - sec-option-types-gvariant-mkUchar
       >     - sec-guidelines-commit-message-style
       >     - sec-release-24.05-state-version-changes
       >     - sec-release-23.11-highlights
       >     - ch-3rd-party
       >     - sec-release-21.05
       >     - sec-commit-style
       >     - sec-usage-gpu-non-nixos
       >     - sec-option-types-dag-entryBefore
       >     - sec-release-21.05-state-version-changes
       >     - sec-release-21.05-highlights
       >     - sec-updating
       >     - sec-guidelines-add-tests
       >     - sec-usage-graphical
       >     - sec-option-types-gvariant-mkString
       >     - sec-release-23.11-state-version-changes
       >
       >     This can happen when an identifier was added or renamed.
       >     Please update doc/redirects.json or nixos/doc/manual/redirects.json!
       >
       > NOTE: If your Manual build passes locally and you see this message in CI, you probably need a rebase.
       For full logs, run 'nix log /nix/store/qfxwfqsfs0y9d5ipjc7y5sx6hpsl7w3y-home-manager-manual.drv'.
error: 1 dependencies of derivation '/nix/store/qzli3lv43nspgi49dynbs7x2ybc2l9zp-home-manager-help.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6y95glvk0i6qwhwfz4f2nr3wm4j6i9p6-home-manager-manual-fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i8qrgnj135pa4a21rwvx73rakxwzxjhd-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bfsqkqi5qwarlc2ig2zpcdyn5px47bpz-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mkws0psd3c1hg7v30l5l2vz4wcyf309m-home-manager-generation.drv' failed to build

My inputs

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable-small";

    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

Maintainer CC

No response

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.5.0-44-generic, Ubuntu, 22.04.5 LTS (Jammy Jellyfish), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.9`
 - nixpkgs: `/nix/store/aj5384f4ax3fg64zkxrw0b7daka0dxfr-source`
dotlambda commented 5 days ago

The HTML manual broke because of https://github.com/NixOS/nixpkgs/pull/353513.

bbigras commented 5 days ago

I have a similar problem.

error: 1 dependencies of derivation '/nix/store/h7209g26igdjgv9i9mxwwa0scw6i817r-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/d92bcrivrml7c2kf0jxphwq78cr93681-nixos-option_fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fg7a6j5px3z8vanzz00iiklr9mijkfvd-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1rpsa8xsjva4d0vwljdhbmqqx24ik9li-nixos-system-bbigras-work-25.05.20241119.23e89b7.drv' failed to build

[...]

warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/z6rsc49qmm96yg5lbxcp1wzs0q8hzv4x-nixos-option.drv^*'
got build log for '/nix/store/z6rsc49qmm96yg5lbxcp1wzs0q8hzv4x-nixos-option.drv' from 'daemon'
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/gk2qs90xfhv0h19h8dca9hn9j3wkix6f-nixos-option
source root is nixos-option
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
mesonConfigurePhase flags: --prefix=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option --libdir=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option/lib --libexecdir=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option/libexec --bindir=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixo>
The Meson build system
Version: 1.6.0
Source dir: /build/nixos-option
Build dir: /build/nixos-option/build
Build type: native build
Project name: nixos-option
Project version: 0.1.6
C++ compiler for the host machine: g++ (gcc 13.3.0 "g++ (GCC) 13.3.0")
C++ linker for the host machine: g++ ld.bfd 2.43.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: YES (/nix/store/f1gamyykr0f8n4afy910ass2jx2g9zkv-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
Run-time dependency nix-main found: YES 2.18.9
Run-time dependency nix-store found: YES 2.18.9
Run-time dependency nix-expr found: YES 2.18.9
Run-time dependency nix-cmd found: YES 2.18.9
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency nix-flake found: NO (tried pkgconfig)

meson.build:10:16: ERROR: Dependency "nix-flake" not found, tried pkgconfig
bbigras commented 5 days ago

@dotlambda It's not related? It seems to involve man and fish-completion.

dotlambda commented 5 days ago

@bbigras Stop spamming. Your issue is not about the manual.

bbigras commented 5 days ago

Spamming? What's with the condescending tone?

I was just asking for precisions since you only gave a :-1: without any details.

It could be reasonable to think there might be a link between the 2 issues since both involved man-paths and possibly broke today.

dotlambda commented 5 days ago

What's with the condescending tone?

I didn't mean to be condescending.

Your issue stems from the use of Lix, c.f. https://github.com/NixOS/nixpkgs/pull/355745#issuecomment-2480206835. It is entirely unrelated to home-manager.

knightpp commented 4 days ago

Thanks! Workaround: disable manual.

manual.html.enable = lib.mkForce false;
fricklerhandwerk commented 4 days ago

Sorry for the inconvenience, and thanks @knightpp for reporting. @getpsyched and me sort this out ASAP.

GetPsyched commented 4 days ago

Thanks for your patience, everyone. I apologise for the inconveniences caused.

A fix has been merged into nixpkgs master; now we have to wait for it to land in nixos-unstable, after which I will bump the changes in #6118.