dynein: use new Darwin SDK pattern

This commit is contained in:
Theodore Ni
2024-11-11 00:08:44 -08:00
parent 0fd590bab8
commit 56aa8ecf5d
2 changed files with 3 additions and 7 deletions
@@ -1,10 +1,8 @@
{ fetchFromGitHub
, lib
, Security
, openssl
, pkg-config
, rustPlatform
, stdenv
}:
rustPlatform.buildRustPackage rec {
@@ -15,7 +13,7 @@ rustPlatform.buildRustPackage rec {
owner = "awslabs";
repo = "dynein";
rev = "v${version}";
sha256 = "sha256-QhasTFGOFOjzNKdQtA+eBhKy51O4dFt6vpeIAIOM2rQ=";
hash = "sha256-QhasTFGOFOjzNKdQtA+eBhKy51O4dFt6vpeIAIOM2rQ=";
};
# Use system openssl.
@@ -27,7 +25,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = [
openssl
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
];
preBuild = ''
export OPENSSL_DIR=${lib.getDev openssl}
+1 -3
View File
@@ -331,9 +331,7 @@ with pkgs;
dnf4 = python3Packages.callPackage ../development/python-modules/dnf4/wrapper.nix { };
dynein = callPackage ../development/tools/database/dynein {
inherit (darwin.apple_sdk.frameworks) Security;
};
dynein = callPackage ../development/tools/database/dynein { };
ebpf-verifier = callPackage ../tools/networking/ebpf-verifier {
catch2 = catch2_3;