diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-21 05:18:00 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-21 05:18:00 -0500 |
commit | 73cb29e6d9c71d15d0a344bbfeb9b52ee72b3c69 (patch) | |
tree | f1d42d155ba953d2e716744dfa2718e630c74c70 /pkgs/applications/editors/glow | |
parent | 7faf44250d658654c2d5cd35ef77f73faf2ebe0c (diff) |
glow: fix build on darwin
Diffstat (limited to 'pkgs/applications/editors/glow')
-rw-r--r-- | pkgs/applications/editors/glow/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/editors/glow/default.nix b/pkgs/applications/editors/glow/default.nix index 928291940cfe3..80fdcc8a09c1a 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; |