about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:19:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 06:19:00 -0500
commitc70cc016d7d4c52be1f401bad876cc773a0d6470 (patch)
tree24afdef574d1ae8594d91d5c4a922a587de34a2f /pkgs
parent7c096126c7228232f31b4333720a5e10f74c0e05 (diff)
downloadnixlib-c70cc016d7d4c52be1f401bad876cc773a0d6470.tar
nixlib-c70cc016d7d4c52be1f401bad876cc773a0d6470.tar.gz
nixlib-c70cc016d7d4c52be1f401bad876cc773a0d6470.tar.bz2
nixlib-c70cc016d7d4c52be1f401bad876cc773a0d6470.tar.lz
nixlib-c70cc016d7d4c52be1f401bad876cc773a0d6470.tar.xz
nixlib-c70cc016d7d4c52be1f401bad876cc773a0d6470.tar.zst
nixlib-c70cc016d7d4c52be1f401bad876cc773a0d6470.zip
mynewt-newt: fix build on darwin
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/package-management/mynewt-newt/default.nix4
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/tools/package-management/mynewt-newt/default.nix b/pkgs/tools/package-management/mynewt-newt/default.nix
index b40257d42f4b..6afba001e08d 100644
--- a/pkgs/tools/package-management/mynewt-newt/default.nix
+++ b/pkgs/tools/package-management/mynewt-newt/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, buildGoModule, fetchFromGitHub, fetchpatch }:
+{ stdenv, buildGoModule, fetchFromGitHub, fetchpatch, Security }:
 
 buildGoModule rec {
   pname = "mynewt-newt";
@@ -24,6 +24,8 @@ buildGoModule rec {
 
   modSha256 = "068r8wa2pgd68jv50x0l1w8n96f97b3mgv7z6f85280ahgywaasq";
 
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
+
   meta = with stdenv.lib; {
     homepage = https://mynewt.apache.org/;
     description = "Build and package management tool for embedded development.";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index b78936af0f1e..0cd55f652f79 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -25460,7 +25460,9 @@ in
 
   musly = callPackage ../applications/audio/musly { };
 
-  mynewt-newt = callPackage ../tools/package-management/mynewt-newt { };
+  mynewt-newt = callPackage ../tools/package-management/mynewt-newt {
+    inherit (darwin.apple_sdk.frameworks) Security;
+  };
 
   inherit (callPackage ../tools/package-management/nix {
       storeDir = config.nix.storeDir or "/nix/store";