From b1e6ccc862a71e3f57e98ec1631a67b2b18fe98c Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Wed, 11 May 2022 16:51:17 -0500 Subject: [PATCH] cliscord: fix build on Darwin Security needs to be added as a buildInput. --- pkgs/misc/cliscord/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/cliscord/default.nix b/pkgs/misc/cliscord/default.nix index 485a6c050417..8ce0da14ce4d 100644 --- a/pkgs/misc/cliscord/default.nix +++ b/pkgs/misc/cliscord/default.nix @@ -1,4 +1,4 @@ -{ lib, rustPlatform, openssl, pkg-config, fetchFromGitHub }: +{ lib, stdenv, rustPlatform, openssl, pkg-config, fetchFromGitHub, Security }: rustPlatform.buildRustPackage rec { pname = "cliscord"; @@ -11,7 +11,7 @@ rustPlatform.buildRustPackage rec { sha256 = "sha256-hzZozgOkw8kFppuHiX9TQxHhxKRv8utWWbhEOIzKDLo="; }; - buildInputs = [ openssl ]; + buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security; nativeBuildInputs = [ pkg-config ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 24322febb49a..ca9d50bbacd1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14142,7 +14142,9 @@ with pkgs; clips = callPackage ../development/interpreters/clips { }; - cliscord = callPackage ../misc/cliscord { }; + cliscord = callPackage ../misc/cliscord { + inherit (darwin.apple_sdk.frameworks) Security; + }; clisp = callPackage ../development/interpreters/clisp { }; clisp-tip = callPackage ../development/interpreters/clisp/hg.nix { };