From e3d8a347fee00b675222ad11a68fd12737e9357f Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Wed, 11 May 2022 16:32:35 -0500 Subject: [PATCH] garage: fix build on Darwin Security needs to be added as a buildInput. --- pkgs/tools/filesystems/garage/default.nix | 5 ++++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/filesystems/garage/default.nix b/pkgs/tools/filesystems/garage/default.nix index 8799ec5a3d2..2818c335176 100644 --- a/pkgs/tools/filesystems/garage/default.nix +++ b/pkgs/tools/filesystems/garage/default.nix @@ -1,4 +1,5 @@ -{ lib, rustPlatform, fetchFromGitea, protobuf, testers, garage }: +{ lib, stdenv, rustPlatform, fetchFromGitea, protobuf, testers, Security, garage }: + rustPlatform.buildRustPackage rec { pname = "garage"; version = "0.7.0"; @@ -15,6 +16,8 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ protobuf ]; + buildInputs = lib.optional stdenv.isDarwin Security; + passthru = { tests.version = testers.testVersion { package = garage; }; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 24322febb49..0041e57d646 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6079,7 +6079,9 @@ with pkgs; gaphor = python3Packages.callPackage ../tools/misc/gaphor { }; - garage = callPackage ../tools/filesystems/garage { }; + garage = callPackage ../tools/filesystems/garage { + inherit (darwin.apple_sdk.frameworks) Security; + }; garmin-plugin = callPackage ../applications/misc/garmin-plugin {};