From 22b81dd057542e47bc75a507b366085ab752d2fa Mon Sep 17 00:00:00 2001 From: Imran Iqbal Date: Wed, 24 Apr 2024 20:46:39 -0400 Subject: [PATCH] taskwarrior3: fix builds on darwin Currently when trying to build on darwin the following error is raised: > ld: framework not found Security When the Security framework is added as an input to the build, it next fails on: > ld: framework not found SystemConfiguration Once both of these are added as inputs the build passes and the resulting binary can be used to access/manipulate the task db. --- pkgs/by-name/ta/taskwarrior3/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/ta/taskwarrior3/package.nix b/pkgs/by-name/ta/taskwarrior3/package.nix index 5b9372189c72..6f48f5593231 100644 --- a/pkgs/by-name/ta/taskwarrior3/package.nix +++ b/pkgs/by-name/ta/taskwarrior3/package.nix @@ -12,6 +12,7 @@ python3, xdg-utils, installShellFiles, + darwin, }: stdenv.mkDerivation rec { pname = "taskwarrior"; @@ -38,6 +39,10 @@ stdenv.mkDerivation rec { cargo rustc rustPlatform.cargoSetupHook + ] ++ lib.optionals stdenv.isDarwin [ + # darwin dependencies + darwin.apple_sdk.frameworks.Security + darwin.apple_sdk.frameworks.SystemConfiguration ]; doCheck = true;