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

trezor-suite: fails to build #374187

Closed
3 tasks done
permezel opened this issue Jan 16, 2025 · 5 comments
Closed
3 tasks done

trezor-suite: fails to build #374187

permezel opened this issue Jan 16, 2025 · 5 comments
Labels
0.kind: bug Something is broken

Comments

@permezel
Copy link

Nixpkgs version

  • Unstable (25.05)

Describe the bug

Fails to build AppImage derivation, due to SHA512 hash mismatch.

Steps to reproduce

%  nix-channel --list-generations
   1   2025-01-01 17:12:52
   2   2025-01-02 15:32:18
   3   2025-01-16 11:45:30   (current)
%  nix profile install nixpkgs#trezor-suite --impure
error: hash mismatch in fixed-output derivation '/nix/store/cdapb1g18qydkcr4r0w2mqf82q6fpmkm-Trezor-Suite-24.12.3-linux-arm64.AppImage.drv':
         specified: sha512-erNWQTaj/WWoqy3TO7wb+ijQkwXjqfCjqvQN6/9gCVjbHswURWHX36P0rJg9vuQu6odi5EKtooDusIxjIUkQzA==
            got:    sha512-kVyRtTJepCT0tFxCpLBNZ168h8IJCUhmQiw/PhvabPshwLzDSKK97F9jLnyXrW7mSS6TNjjNCoUyxwie1RDHew==
error: 1 dependencies of derivation '/nix/store/4wlrqvha9pv46w4f2q1gg33ibpd6glds-trezor-suite-24.12.3-extracted.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hj1xgkc66h0f61d0q5y0vx7g6s7fdxkg-trezor-suite-24.12.3.drv' failed to build

Expected behaviour

I expect it to succeed.

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

  • system: "aarch64-linux"
  • host os: Linux 6.12.4-asahi, NixOS, 25.05 (Warbler), 25.05beta738172.eb62e6aa39ea
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.11
  • channels(root): "nixos"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@permezel permezel added the 0.kind: bug Something is broken label Jan 16, 2025
@surfaceflinger
Copy link
Member

This no longer should be an issue since the new updateScript updates both aarch64 and x86_64 hashes. Could you check again?

@Remedan
Copy link

Remedan commented Mar 18, 2025

The package still fails to build for me with the following message:

❯ NIXPKGS_ALLOW_UNFREE=1 nix shell --impure nixpkgs#trezor-suite
error: builder for '/nix/store/ky1xvkh859jwhpr0dm54bk2xxvv9fncx-trezord-go-2.0.33.drv' failed with exit code 1;
       last 22 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/wxayj37h4cfsr615cyxigsf1b2gwg7cw-source
       > source root is source
       > Running phase: patchPhase
       > applying patch /nix/store/im3ysryf399blv41s4jjdqc91yg9j57p-616473d53a8ae49f1099e36ab05a2981a08fa606.patch
       > patching file usb/lowlevel/libusb/libusb.go
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       > Building subPackage .
       > # github.com/trezor/trezord-go/usb/lowlevel/libusb
       > usb/lowlevel/libusb/libusb.go:408:10: cannot define new methods on non-local type Struct_Libusb_Endpoint_Descriptor
       > usb/lowlevel/libusb/libusb.go:461:10: cannot define new methods on non-local type Struct_Libusb_Interface_Descriptor
       > usb/lowlevel/libusb/libusb.go:519:10: cannot define new methods on non-local type Struct_Libusb_Interface
       > usb/lowlevel/libusb/libusb.go:569:10: cannot define new methods on non-local type Struct_Libusb_Config_Descriptor
       > usb/lowlevel/libusb/libusb.go:630:10: cannot define new methods on non-local type Struct_Libusb_SS_Endpoint_Companion_Descriptor
       > usb/lowlevel/libusb/libusb.go:657:10: cannot define new methods on non-local type Struct_Libusb_BOS_Dev_Capability_Descriptor
       > usb/lowlevel/libusb/libusb.go:683:10: cannot define new methods on non-local type Struct_Libusb_BOS_Descriptor
       > usb/lowlevel/libusb/libusb.go:718:10: cannot define new methods on non-local type Struct_Libusb_USB_2_0_Extension_Descriptor
       > usb/lowlevel/libusb/libusb.go:748:10: cannot define new methods on non-local type Struct_Libusb_SS_USB_Device_Capability_Descriptor
       > usb/lowlevel/libusb/libusb.go:779:10: cannot define new methods on non-local type Struct_Libusb_Container_ID_Descriptor
       > usb/lowlevel/libusb/libusb.go:779:10: too many errors
       For full logs, run 'nix-store -l /nix/store/ky1xvkh859jwhpr0dm54bk2xxvv9fncx-trezord-go-2.0.33.drv'.
error: 1 dependencies of derivation '/nix/store/wp6n1vwdqkksa211va9qdh9h1i17v9kl-trezor-suite-25.2.2.drv' failed to build

@surfaceflinger
Copy link
Member

This has been fixed in #389628
Update your nixpkgs @Remedan

@Remedan
Copy link

Remedan commented Mar 18, 2025

You're right, it works with updated nixpkgs. Sorry about the false report.

@surfaceflinger
Copy link
Member

Closing because it builds fine on both aarch64 and x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

3 participants