From 0d0c32e366de8ccf96218cb4e9fc81a649137e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Tue, 15 Oct 2024 19:04:54 +1100 Subject: [PATCH] converve: fix darwin build Add the required framework. --- pkgs/tools/backup/conserve/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/backup/conserve/default.nix b/pkgs/tools/backup/conserve/default.nix index 12250ee2b6fd..1707321d1057 100644 --- a/pkgs/tools/backup/conserve/default.nix +++ b/pkgs/tools/backup/conserve/default.nix @@ -1,6 +1,9 @@ -{ lib -, rustPlatform -, fetchFromGitHub +{ + lib, + stdenv, + rustPlatform, + fetchFromGitHub, + darwin }: rustPlatform.buildRustPackage rec { @@ -16,6 +19,10 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-IP9x3n5RdI+TKOhMBWEfw9P2CROcC0SmEsmMVaXjiDE="; + buildInputs = lib.optionals (stdenv.isDarwin) [ + darwin.apple_sdk.frameworks.Security + ]; + checkFlags = [ # expected to panic if unix user has no secondary group, # which is the case in the nix sandbox