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]: Cannot install on NixOS #2360

Closed
1 task done
milgner opened this issue Aug 12, 2024 · 0 comments · Fixed by #2362
Closed
1 task done

[Bug]: Cannot install on NixOS #2360

milgner opened this issue Aug 12, 2024 · 0 comments · Fixed by #2362
Labels
bug Something isn't working

Comments

@milgner
Copy link

milgner commented Aug 12, 2024

What did you expect to happen?

According to the documentation, one can use nix profile install github:atuinsh/atuin` to install atuin.

What happened?

Instead of successfully installing the software, I get instead

$ nix profile install github:atuinsh/atuin 
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'atuin'
         whose name attribute is located at /nix/store/f5ykynf933aab7nd1arqz6dm79hdh91q-source/pkgs/stdenv/generic/make-derivation.nix:334:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'atuin'

         at /nix/store/f5ykynf933aab7nd1arqz6dm79hdh91q-source/pkgs/stdenv/generic/make-derivation.nix:378:7:

          377|       depsBuildBuild              = elemAt (elemAt dependencies 0) 0;
          378|       nativeBuildInputs           = elemAt (elemAt dependencies 0) 1;
             |       ^
          379|       depsBuildTarget             = elemAt (elemAt dependencies 0) 2;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: hash mismatch in fixed-output derivation '/nix/store/krsrs44hmf73cipid63rmgld6km9vkmj-channel-rust-1.80.toml.drv':
         specified: sha256-6eN/GKzjVSjEhGO9FhWObkRFaE1Jf+uqMSdQnb8lcB4=
            got:    sha256-3jVIIf5XPnUU1CRaTyAiO0XHVbJl12MSx3eucTXCjtE=

Atuin doctor output

Not yet available, as installation fails.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@milgner milgner added the bug Something isn't working label Aug 12, 2024
eopb added a commit to eopb/atuin that referenced this issue Aug 13, 2024
fixes atuinsh#2360

https://blog.rust-lang.org/2024/08/08/Rust-1.80.1.html

`1.80.1` fixes a fairly nasty miscompilation, but that's not my motivation for opening this PR.

If I'm understanding correctly, because the rust patch version was not specified in `rust-toolchain.toml`, nix automatically upgraded to the new version. This broke the hash in `flake.nix` causing the flake to fail to build. Making this upgrade to `1.80.1` explicit, fixes this issue.
@eopb eopb mentioned this issue Aug 13, 2024
2 tasks
@ellie ellie closed this as completed in d264840 Aug 14, 2024
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.

1 participant