mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-12 01:14:28 -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 = [
|
deps = [
|
||||||
":ms_tpm_20_ref_google_samples",
|
":ms_tpm_20_ref_google_samples",
|
||||||
"@org_openssl//:org_openssl",
|
"@//nix/cc:org_openssl",
|
||||||
],
|
],
|
||||||
target_compatible_with = [
|
target_compatible_with = [
|
||||||
"@platforms//os:linux",
|
"@platforms//os:linux",
|
||||||
|
@ -229,7 +229,7 @@
|
|||||||
+ ],
|
+ ],
|
||||||
+ deps = [
|
+ deps = [
|
||||||
+ ":ms_tpm_20_ref_google_samples",
|
+ ":ms_tpm_20_ref_google_samples",
|
||||||
+ "@org_openssl//:org_openssl",
|
+ "@//nix/cc:org_openssl",
|
||||||
+ ],
|
+ ],
|
||||||
+ target_compatible_with = [
|
+ target_compatible_with = [
|
||||||
+ "@platforms//os:linux",
|
+ "@platforms//os:linux",
|
||||||
|
@ -56,28 +56,6 @@ nixpkgs_flake_package(
|
|||||||
package = "mkosi",
|
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(
|
nixpkgs_package(
|
||||||
name = "diffutils",
|
name = "diffutils",
|
||||||
repository = "@nixpkgs",
|
repository = "@nixpkgs",
|
||||||
|
Loading…
Reference in New Issue
Block a user