From b7c8400546f18686446d825de43feb182e1d22d3 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Mon, 9 May 2022 13:28:02 +0200 Subject: [PATCH] gbl: darwin support Co-authored-by: Bobby Rong --- pkgs/tools/archivers/gbl/default.nix | 4 +++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/archivers/gbl/default.nix b/pkgs/tools/archivers/gbl/default.nix index 266b0830d5c..3cba21c188b 100644 --- a/pkgs/tools/archivers/gbl/default.nix +++ b/pkgs/tools/archivers/gbl/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , fetchFromGitHub , rustPlatform , fetchpatch @@ -6,6 +7,7 @@ , openssl , testers , gbl +, Security }: rustPlatform.buildRustPackage rec { @@ -31,7 +33,7 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "sha256-RUZ6wswRtV8chq3+bY9LTRf6IYMbZ9/GPl2X5UcF7d8="; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ]; passthru.tests.version = testers.testVersion { package = gbl; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e61db0e75b8..5ff973195e8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2198,7 +2198,9 @@ with pkgs; fxlinuxprintutil = callPackage ../tools/misc/fxlinuxprintutil { }; - gbl = callPackage ../tools/archivers/gbl { }; + gbl = callPackage ../tools/archivers/gbl { + inherit (darwin.apple_sdk.frameworks) Security; + }; genann = callPackage ../development/libraries/genann { };