mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-11 17:04:22 -05:00
bazel: use openssl for selected target platform
This commit is contained in:
parent
e7d96f0337
commit
ea0b456415
@ -229,7 +229,7 @@ cc_library(
|
||||
],
|
||||
deps = [
|
||||
":ms_tpm_20_ref_google_samples",
|
||||
"@org_openssl//:org_openssl",
|
||||
"@//nix/cc:org_openssl",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@platforms//os:linux",
|
||||
|
@ -229,7 +229,7 @@
|
||||
+ ],
|
||||
+ deps = [
|
||||
+ ":ms_tpm_20_ref_google_samples",
|
||||
+ "@org_openssl//:org_openssl",
|
||||
+ "@//nix/cc:org_openssl",
|
||||
+ ],
|
||||
+ target_compatible_with = [
|
||||
+ "@platforms//os:linux",
|
||||
|
@ -56,28 +56,6 @@ nixpkgs_flake_package(
|
||||
package = "mkosi",
|
||||
)
|
||||
|
||||
nixpkgs_flake_package(
|
||||
name = "org_openssl",
|
||||
build_file_content = """\
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
filegroup(
|
||||
name = "include",
|
||||
srcs = glob(["include/**/*.h"]),
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
cc_library(
|
||||
name = "org_openssl",
|
||||
srcs = glob(["lib/**/*.a"]),
|
||||
hdrs = [":include"],
|
||||
strip_include_prefix = "include",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
""",
|
||||
nix_flake_file = "//:flake.nix",
|
||||
nix_flake_lock_file = "//:flake.lock",
|
||||
package = "openssl",
|
||||
)
|
||||
|
||||
nixpkgs_package(
|
||||
name = "diffutils",
|
||||
repository = "@nixpkgs",
|
||||
|
Loading…
Reference in New Issue
Block a user