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]: can't build with home-manager on nixos #20

Closed
1 task done
minhtrancccp opened this issue Dec 18, 2024 · 2 comments · Fixed by #21
Closed
1 task done

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

minhtrancccp opened this issue Dec 18, 2024 · 2 comments · Fixed by #21
Labels
bug Something isn't working

Comments

@minhtrancccp
Copy link

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
@iffse
Copy link
Owner

iffse commented Dec 18, 2024

Does it work now?

@minhtrancccp
Copy link
Author

it does now, many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants