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

botan2: add aarch64-linux to platforms #108892

Merged
merged 1 commit into from Jan 11, 2021
Merged

botan2: add aarch64-linux to platforms #108892

merged 1 commit into from Jan 11, 2021

Conversation

thelegy
Copy link
Member

@thelegy thelegy commented Jan 9, 2021

Motivation for this change

I added the aarch64-linux platform for the botan2 package, as I need it and it compiles and seems to work perfectly.

Maybe we should open the paclage for even more platforms. I cannot tell because I don't know the original reason for allowing only so few platforms and if it still applies.

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.

@thelegy thelegy changed the title botan2: add aarch63-linux to platforms botan2: add aarch64-linux to platforms Jan 9, 2021
@ofborg ofborg bot requested a review from 7c6f434c January 9, 2021 23:57
@@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
inherit version;
description = "Cryptographic algorithms library";
maintainers = with maintainers; [ raskin ];
platforms = ["x86_64-linux" "i686-linux" "x86_64-darwin"];
platforms = ["aarch64-linux" "x86_64-linux" "i686-linux" "x86_64-darwin"];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
platforms = ["aarch64-linux" "x86_64-linux" "i686-linux" "x86_64-darwin"];
platforms = platforms.linux ++ [ "x86_64-darwin"];

Copy link
Contributor

@danieldk danieldk Jan 10, 2021

Choose a reason for hiding this comment

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

That gives a list in a list, I guess you'd want something like:

platforms = platforms.linux ++ platforms.darwin;

(Or x86_64-darwin specifically if you believe it wouldn't build on macOS AArch64.).

Of course, you may as well use platforms.all then as well (do we really support anything else than Linux and Darwin currently?).

Copy link
Member Author

Choose a reason for hiding this comment

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

It seems like platforms.unix was the previous value, but the explicit list has been used instead, because it would not build under aarch64. As it now does i don't see any reason to exclude anything more, than we must, so i would like to remove the explicit list.

Would the old value of platforms.unix be apropiate here, or should platforms.all be used here? platforms.linux ++ platforms.darwin seems a bit arbitrary to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

platforms.unix sounds sensible then 👍

Copy link
Contributor

@danieldk danieldk left a comment

Choose a reason for hiding this comment

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

Thanks!

@danieldk danieldk merged commit 9a33d28 into NixOS:master Jan 11, 2021
@thelegy
Copy link
Member Author

thelegy commented Jan 11, 2021

Thanks aswell.

@thelegy thelegy deleted the botan2 branch January 11, 2021 11:14
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

3 participants