Skip to content

[Bug]: can't build with home-manager on nixos #20

Description

@minhtrancccp

What happened?

i'm currently using the proposed pay-respects module for home-manager in my home.nix as shown below:

pay-respects.enable = true;
pay-respects.package = inputs.pay-respects.packages.${system}.default; # `inputs.pay-respects` defined in flake.nix

when i called nixos-rebuild, i encountered the error of failed to load manifest for workspace member /build/source/core

The command and output

`nixos-rebuild test --fast --show-trace`
building the system configuration...
these 11 derivations will be built:
  /nix/store/ys249ajvmjwgrvsdlx6iw2n0fbjgchna-pay-respects-0.6.6.drv
  /nix/store/rrrzd3z5ra2vqy2r78havhpqr3wfl8xz-home-manager-path.drv
  /nix/store/1l55yfgrsfjil3aiy12yv81xn2bpkgvh-user-environment.drv
  /nix/store/i7rh9mw35r2pvgvgn5cg32dvv3hl4fdj-bashrc.drv
  /nix/store/lghmk8mkwajshq9j7i1s1fgkhvag2p4f-hm_fontconfigconf.d10hmfonts.conf.drv
  /nix/store/gfjs6l2724xw7i2bnpfhy9lk0yxngskq-home-manager-files.drv
  /nix/store/pj3iqyasfa21zx9cqfgbggji1hp4g9fy-home-manager-generation.drv
  /nix/store/a1zb16y97a349nk2gc4iqr3rfj14d1sw-unit-home-manager-minhcccp.service.drv
  /nix/store/7xcr43szh0f1h3npa8n4z7khcfbp52r7-system-units.drv
  /nix/store/c2gpkdral998zb48z0zayk0f4canf24p-etc.drv
  /nix/store/wk5am0c1a2myr3cg0gjrh2jy00ify1nn-nixos-system-laptop-cccp-25.05.20241218.31034ed.drv
building '/nix/store/ys249ajvmjwgrvsdlx6iw2n0fbjgchna-pay-respects-0.6.6.drv'...
error: builder for '/nix/store/ys249ajvmjwgrvsdlx6iw2n0fbjgchna-pay-respects-0.6.6.drv' failed with exit code 101;
       last 25 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/azdvcx3fkh98bjq8a6ii9cz5bhzc3l89-source
       > source root is source
       > Executing cargoSetupPostUnpackHook
       > Finished cargoSetupPostUnpackHook
       > Running phase: patchPhase
       > Executing cargoSetupPostPatchHook
       > Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
       > Finished cargoSetupPostPatchHook
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       > Executing cargoBuildHook
       > cargoBuildHook flags: -j 16 --target x86_64-unknown-linux-gnu --offline --profile release
       > error: failed to load manifest for workspace member `/build/source/core`
       > referenced by workspace at `/build/source/Cargo.toml`
       >
       > Caused by:
       >   failed to load manifest for dependency `pay-respects-parser`
       >
       > Caused by:
       >   failed to read `/build/source/parser/Cargo.toml`
       >
       > Caused by:
       >   No such file or directory (os error 2)
       For full logs, run:
         nix log /nix/store/ys249ajvmjwgrvsdlx6iw2n0fbjgchna-pay-respects-0.6.6.drv
error: 1 dependencies of derivation '/nix/store/i7rh9mw35r2pvgvgn5cg32dvv3hl4fdj-bashrc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rrrzd3z5ra2vqy2r78havhpqr3wfl8xz-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pj3iqyasfa21zx9cqfgbggji1hp4g9fy-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1l55yfgrsfjil3aiy12yv81xn2bpkgvh-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/c2gpkdral998zb48z0zayk0f4canf24p-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wk5am0c1a2myr3cg0gjrh2jy00ify1nn-nixos-system-laptop-cccp-25.05.20241218.31034ed.drv' failed to build
`nix log /nix/store/ys249ajvmjwgrvsdlx6iw2n0fbjgchna-pay-respects-0.6.6.drv`
got build log for '/nix/store/ys249ajvmjwgrvsdlx6iw2n0fbjgchna-pay-respects-0.6.6.drv' from 'daemon'
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/azdvcx3fkh98bjq8a6ii9cz5bhzc3l89-source
source root is source
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Executing cargoSetupPostPatchHook
Validating consistency between /build/source/Cargo.lock and /build/cargo-vendor-dir/Cargo.lock
Finished cargoSetupPostPatchHook
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing cargoBuildHook
cargoBuildHook flags: -j 16 --target x86_64-unknown-linux-gnu --offline --profile release
�[1m�[31merror�[0m�[1m:�[0m failed to load manifest for workspace member `/build/source/core`
referenced by workspace at `/build/source/Cargo.toml`

Caused by:
  failed to load manifest for dependency `pay-respects-parser`

Caused by:
  failed to read `/build/source/parser/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

Build information

[none available]

No similar issue

  • I have searched the issue list and there is no similar issue found

Activity

  1. iffse commented on Dec 18, 2024

    @iffse
    Owner

    Does it work now?

  2. minhtrancccp commented on Dec 18, 2024

    @minhtrancccp
    ContributorAuthor

    it does now, many thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions