dynein: use new Darwin SDK pattern
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user