-
Notifications
You must be signed in to change notification settings - Fork 129
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
Support pre-20.03 Nixpkgs #234
base: master
Are you sure you want to change the base?
Conversation
toRustTarget was added in https://github.com/nixos/nixpkgs/commits/83ac9c07e4df352e177ebdf978320089a137183a So not all nixpkgs have it. We can provide a backup of it in this case. Fixes mozilla#232
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined variable 'lib' at /nix/store/3spd0g7vp1n81ccnydfrvqackfpgbajc-nixpkgs-mozilla-src/rust-overlay.nix:83:48
rust-overlay.nix
Outdated
"armv6l" = "arm"; | ||
}.${cpu.name} or platform.rustc.arch or cpu.name; | ||
in platform.rustc.config | ||
or "${cpu_}-${vendor.name}-${kernel.name}${lib.optionalString (abi.name != "unknown") "-${abi.name}"}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be super.lib.optionalString
, not lib.optionalString
This isn't quite right. I have committed a tested and working fix in 3ae360a. |
Thanks! |
I’d appreciate this landing since I’m running into this. Any chance? :-) |
"armv7a" = "armv7"; | ||
"armv7l" = "armv7"; | ||
"armv6l" = "arm"; | ||
}.${cpu.name} or platform.rustc.arch or cpu.name; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: Any reason to add platform.rustc.arch
as opposed to what is currently implemented in Nixpkgs
toRustTarget was added in https://github.com/nixos/nixpkgs/commits/83ac9c07e4df352e177ebdf978320089a137183a
So not all nixpkgs have it. We can provide a backup of it in this
case.
Fixes #232