From 618075428b25837beaf4c3711aca1d40b5de29bf Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sat, 21 Mar 2020 05:29:00 -0500 Subject: [PATCH] joker: fix build on darwin --- pkgs/development/interpreters/joker/default.nix | 4 +++- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/joker/default.nix b/pkgs/development/interpreters/joker/default.nix index ed82f76eec24..1db2dd60197b 100644 --- a/pkgs/development/interpreters/joker/default.nix +++ b/pkgs/development/interpreters/joker/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildGoModule, fetchFromGitHub }: +{ stdenv, buildGoModule, fetchFromGitHub, Security }: buildGoModule rec { pname = "joker"; @@ -13,6 +13,8 @@ buildGoModule rec { modSha256 = "0i16vf7n1xfz5kp9w3fvyc9y9wgz4h396glgpdaznpxjr12rb43j"; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + preBuild = '' go generate ./... ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index abddc4ec7286..49f408b7e1cc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9296,7 +9296,9 @@ in jmeter = callPackage ../applications/networking/jmeter {}; - joker = callPackage ../development/interpreters/joker {}; + joker = callPackage ../development/interpreters/joker { + inherit (darwin.apple_sdk.frameworks) Security; + }; davmail = callPackage ../applications/networking/davmail {};