Skip to content

Commit

Permalink
NixOS added as a Platform target including a pseudo target triple (#2311
Browse files Browse the repository at this point in the history
)

Happy to rework this if there's a better approach. Motivation is to get
rid of this hack I've been using (including in the `nix_cross_compiling`
example):

```bazel
# This seems like the best way for the Cargo generated dependencies to be
# aware of `x86_64-unknown-nixos-gnu`.
selects.config_setting_group(
    name = "x86_64-unknown-linux-gnu",
    match_any = [
        ":x86_64-unknown-linux-gnu_linux",
        ":x86_64-unknown-linux-gnu_nixos",
    ],
)

config_setting(
    name = "x86_64-unknown-linux-gnu_linux",
    constraint_values = [
        "@platforms//cpu:x86_64",
        "@platforms//os:linux",
    ],
)

config_setting(
    name = "x86_64-unknown-linux-gnu_nixos",
    constraint_values = [
        "@platforms//cpu:x86_64",
        "@platforms//os:nixos",
    ],
)
```
  • Loading branch information
rickvanprim authored Dec 11, 2023
1 parent 0a4c4df commit bf04130
Show file tree
Hide file tree
Showing 299 changed files with 988 additions and 168 deletions.
2 changes: 2 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.adler-1.0.2.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.ahash-0.7.6.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.aho-corasick-1.0.2.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.anstream-0.3.2.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.anstyle-1.0.1.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.anyhow-1.0.75.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.arc-swap-1.6.0.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.arrayvec-0.7.4.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.autocfg-1.1.0.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.bitflags-1.3.2.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions crate_universe/3rdparty/crates/BUILD.bitflags-2.4.1.bazel

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bf04130

Please sign in to comment.