From b3b1dd0e38a3066b074b1c6dcfd268e8d4517f0e Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sat, 20 Aug 2022 18:17:27 -0700 Subject: [PATCH] zine: add missing Darwin frameworks (#187659) Co-authored-by: Sandro --- pkgs/applications/misc/zine/default.nix | 8 +++++--- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/zine/default.nix b/pkgs/applications/misc/zine/default.nix index 28fdaebe35ea..0c26d39bf698 100644 --- a/pkgs/applications/misc/zine/default.nix +++ b/pkgs/applications/misc/zine/default.nix @@ -4,6 +4,8 @@ , rustPlatform , pkg-config , openssl +, CoreServices +, Security }: rustPlatform.buildRustPackage rec { pname = "zine"; @@ -23,9 +25,9 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - openssl - ]; + + buildInputs = [ openssl ] + ++ lib.optionals stdenv.isDarwin [ CoreServices Security ]; meta = with lib; { description = "A simple and opinionated tool to build your own magazine"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 74615139e8ed..42502144f3ed 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32025,7 +32025,9 @@ with pkgs; zim = callPackage ../applications/office/zim { }; - zine = callPackage ../applications/misc/zine { }; + zine = callPackage ../applications/misc/zine { + inherit (darwin.apple_sdk.frameworks) CoreServices Security; + }; zita-ajbridge = callPackage ../applications/audio/zita-ajbridge { };