about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 05:18:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 05:18:00 -0500
commit73cb29e6d9c71d15d0a344bbfeb9b52ee72b3c69 (patch)
treef1d42d155ba953d2e716744dfa2718e630c74c70 /pkgs/applications/editors
parent7faf44250d658654c2d5cd35ef77f73faf2ebe0c (diff)
downloadnixlib-73cb29e6d9c71d15d0a344bbfeb9b52ee72b3c69.tar
nixlib-73cb29e6d9c71d15d0a344bbfeb9b52ee72b3c69.tar.gz
nixlib-73cb29e6d9c71d15d0a344bbfeb9b52ee72b3c69.tar.bz2
nixlib-73cb29e6d9c71d15d0a344bbfeb9b52ee72b3c69.tar.lz
nixlib-73cb29e6d9c71d15d0a344bbfeb9b52ee72b3c69.tar.xz
nixlib-73cb29e6d9c71d15d0a344bbfeb9b52ee72b3c69.tar.zst
nixlib-73cb29e6d9c71d15d0a344bbfeb9b52ee72b3c69.zip
glow: fix build on darwin
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/glow/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/editors/glow/default.nix b/pkgs/applications/editors/glow/default.nix
index 928291940cfe..80fdcc8a09c1 100644
--- a/pkgs/applications/editors/glow/default.nix
+++ b/pkgs/applications/editors/glow/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ stdenv, buildGoModule, fetchFromGitHub, Security }:
 
 buildGoModule rec {
   pname = "glow";
@@ -13,9 +13,11 @@ buildGoModule rec {
 
   modSha256 = "0r0yq7kgz7i1wf4gxxihdrn1c8mi4wcyhadncxbln24s9c5apxsf";
 
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
+
   buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
 
-  meta = with lib; {
+  meta = with stdenv.lib; {
     description = "Render markdown on the CLI";
     homepage = "https://github.com/charmbracelet/glow";
     license = licenses.mit;