From 68a8b278c16b9359a71faa45d3ba583e20957474 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Thu, 4 Nov 2021 18:21:10 -0700 Subject: [PATCH] anup: fix build on darwin --- pkgs/applications/misc/anup/default.nix | 4 +++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/anup/default.nix b/pkgs/applications/misc/anup/default.nix index 9c99c84eabee..3eed2a7501c3 100644 --- a/pkgs/applications/misc/anup/default.nix +++ b/pkgs/applications/misc/anup/default.nix @@ -1,4 +1,4 @@ -{ lib, rustPlatform, fetchFromGitHub, sqlite, xdg-utils}: +{ lib, stdenv, rustPlatform, fetchFromGitHub, Security, sqlite, xdg-utils}: rustPlatform.buildRustPackage rec { pname = "anup"; @@ -14,6 +14,8 @@ rustPlatform.buildRustPackage rec { buildInputs = [ sqlite xdg-utils + ] ++ lib.optionals stdenv.isDarwin [ + Security ]; cargoSha256 = "sha256-1TA2HDHKA3twFtlAWaC2zcRzS8TJwcbBt1OTQ3hC3qM="; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 171e7f110b47..39f5053a412b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23752,7 +23752,9 @@ with pkgs; antiword = callPackage ../applications/office/antiword {}; - anup = callPackage ../applications/misc/anup {}; + anup = callPackage ../applications/misc/anup { + inherit (darwin.apple_sdk.frameworks) Security; + }; anytype = callPackage ../applications/misc/anytype { };