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

trezord: 1.2.1 -> 2.0.12 #38704

Merged
merged 1 commit into from Apr 12, 2018
Merged

Conversation

roconnor-blockstream
Copy link
Contributor

The old trezord is obsolete and no longer functions with Trezor's password manager app.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@roconnor-blockstream
Copy link
Contributor Author

@jb55 @canndrew This is a major overhaul of trezord. Would you two like to review?


stdenv.mkDerivation rec {
name = "trezord-${version}";
buildInputs = [clang];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than using clang to work around the issue you can use hardeningDisable = [ "fortify" ];.

See https://github.com/NixOS/nixpkgs/blob/b81ca435e6367ddbca29846bfb6ae3b538e67a6c/pkgs/applications/altcoins/go-ethereum.nix for an example

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

The old trezord is obsolete and no longer functions with Trezor's password manager app.
@adisbladis
Copy link
Member

adisbladis commented Apr 11, 2018

@roconnor-blockstream Thanks for the change. Everythink looks fine now :)

I want to test this with some actual Trezor hardware before merging so it's gonna have to wait until tomorrow (~12h).

I'll also backport this change to 18.03 since it's very newly released and the old trezord is unsupported by upstream.

@jb55
Copy link
Contributor

jb55 commented Apr 11, 2018

Awesome! Testing now.

@jb55
Copy link
Contributor

jb55 commented Apr 11, 2018

works great!

@adisbladis
Copy link
Member

@GrahamcOfBorg eval

@adisbladis adisbladis merged commit fbcbac6 into NixOS:master Apr 12, 2018
@adisbladis
Copy link
Member

A bit slow to backport, but here it is: 24eb7a9

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

Successfully merging this pull request may close these issues.

None yet

4 participants