summary refs log tree commit diff
path: root/pkgs/servers/gortr
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 05:07:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 05:07:00 -0500
commitcb8f82b8368a2dbd9dfa8bad1ad4f33dae55aebc (patch)
treec83bd6bdfd523eb11e77188710804361fb945e3e /pkgs/servers/gortr
parenta8c36060b72c9bc5bc87c4102313e77c14b2dd27 (diff)
downloadnixpkgs-cb8f82b8368a2dbd9dfa8bad1ad4f33dae55aebc.tar
nixpkgs-cb8f82b8368a2dbd9dfa8bad1ad4f33dae55aebc.tar.gz
nixpkgs-cb8f82b8368a2dbd9dfa8bad1ad4f33dae55aebc.tar.bz2
nixpkgs-cb8f82b8368a2dbd9dfa8bad1ad4f33dae55aebc.tar.lz
nixpkgs-cb8f82b8368a2dbd9dfa8bad1ad4f33dae55aebc.tar.xz
nixpkgs-cb8f82b8368a2dbd9dfa8bad1ad4f33dae55aebc.tar.zst
nixpkgs-cb8f82b8368a2dbd9dfa8bad1ad4f33dae55aebc.zip
gortr: fix build on darwin
Diffstat (limited to 'pkgs/servers/gortr')
-rw-r--r--pkgs/servers/gortr/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/servers/gortr/default.nix b/pkgs/servers/gortr/default.nix
index 35c6e145243..3e5dfc87f0e 100644
--- a/pkgs/servers/gortr/default.nix
+++ b/pkgs/servers/gortr/default.nix
@@ -1,4 +1,4 @@
-{ lib, fetchFromGitHub, buildGoModule }:
+{ stdenv, fetchFromGitHub, buildGoModule, Security }:
 
 buildGoModule rec {
   pname = "gortr";
@@ -12,7 +12,9 @@ buildGoModule rec {
   };
   modSha256 = "157dpalfz3z1s3mxq63xy6lrkwzyy9xzmvn7wsxkwznjq4djv1a1";
 
-  meta = with lib; {
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
+
+  meta = with stdenv.lib; {
     description = "The RPKI-to-Router server used at Cloudflare";
     homepage = "https://github.com/cloudflare/gortr/";
     license = licenses.gpl3;