diff --git a/.bazelrc b/.bazelrc index 99765694f..d226e65e2 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1 +1 @@ -build --host_platform=@io_tweag_rules_nixpkgs//nixpkgs/constraints:linux_x86_64_nixpkgs +build --host_platform=@io_tweag_rules_nixpkgs//nixpkgs/platforms:host diff --git a/nixpkgs/constraints/BUILD.bazel b/nixpkgs/constraints/BUILD.bazel index 36fb41f3d..66625309b 100644 --- a/nixpkgs/constraints/BUILD.bazel +++ b/nixpkgs/constraints/BUILD.bazel @@ -20,6 +20,7 @@ platform( "@platforms//os:linux", "@io_tweag_rules_nixpkgs//nixpkgs/constraints:nixpkgs", ], + deprecation = "Use @io_tweag_rules_nixpkgs//platforms:host instead.", visibility = ["//visibility:public"], ) @@ -30,5 +31,6 @@ platform( "@platforms//os:osx", "@io_tweag_rules_nixpkgs//nixpkgs/constraints:nixpkgs", ], + deprecation = "Use @io_tweag_rules_nixpkgs//platforms:host instead.", visibility = ["//visibility:public"], ) diff --git a/nixpkgs/platforms/BUILD.bazel b/nixpkgs/platforms/BUILD.bazel new file mode 100644 index 000000000..d574b24c6 --- /dev/null +++ b/nixpkgs/platforms/BUILD.bazel @@ -0,0 +1,6 @@ +platform( + name = "host", + constraint_values = ["@io_tweag_rules_nixpkgs//nixpkgs/constraints:support_nix"], + parents = ["@local_config_platform//:host"], + visibility = ["//visibility:public"], +)