Skip to content

rustc: Add support for FreeBSD#316257

Merged
Ericson2314 merged 1 commit intoNixOS:stagingfrom
rhelmot:freebsd-rust
Jun 1, 2024
Merged

rustc: Add support for FreeBSD#316257
Ericson2314 merged 1 commit intoNixOS:stagingfrom
rhelmot:freebsd-rust

Conversation

@rhelmot
Copy link
Contributor

@rhelmot rhelmot commented May 31, 2024

Description of changes

Add x86_64-unknown-freebsd to the list of rust platforms and adjust the requisite inputs. It works!

This has some prerequisites if you actually want to test it out:

This targets staging because #309580 doesn't seem to have made it to master yet.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
    • x86_64-freebsd
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. label May 31, 2024
@rhelmot rhelmot added the 6.topic: bsd Running or building packages on BSD label May 31, 2024
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels May 31, 2024
@Ericson2314 Ericson2314 merged commit da9f5b3 into NixOS:staging Jun 1, 2024
@Ericson2314 Ericson2314 deleted the freebsd-rust branch June 1, 2024 16:21
@Ericson2314
Copy link
Member

I like how this is mostly disabling sketchy hacks :)

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

Labels

6.topic: bsd Running or building packages on BSD 6.topic: rust General-purpose programming language emphasizing performance, type safety, and concurrency. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants