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

libfido2: build only Linux #80710

Merged
merged 1 commit into from Feb 21, 2020
Merged

libfido2: build only Linux #80710

merged 1 commit into from Feb 21, 2020

Conversation

mmahut
Copy link
Member

@mmahut mmahut commented Feb 21, 2020

Motivation for this change

An attempt to fix the failed evaluation in #80196.

We should build libfido2 with systemd only on Linux.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@mmahut mmahut changed the title libfido2: build with systemd only on linux libfido2: build only Linux Feb 21, 2020
@mmahut
Copy link
Member Author

mmahut commented Feb 21, 2020

No go anyway, libfido2 doesn't play well with darwin's libtool.

Filled a bug in Yubico/libfido2#127

Disabling darwin support for now.

Copy link
Member

@lukateras lukateras left a comment

Choose a reason for hiding this comment

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

Currently nix-build -A libfido2 on x86_64-darwin fails with Package ‘systemd-242’ in pkgs/os-specific/linux/systemd/default.nix:220 is not supported on ‘x86_64-darwin’, refusing to evaluate, setting meta.platforms here makes its unsupported status transparent.

@mmahut mmahut merged commit 448c671 into NixOS:master Feb 21, 2020
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

2 participants