glow: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:18:00 -05:00
parent 7faf44250d
commit 73cb29e6d9
2 changed files with 7 additions and 3 deletions

View file

@ -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;

View file

@ -19690,7 +19690,9 @@ in
inherit (darwin) IOKit;
};
glow = callPackage ../applications/editors/glow { };
glow = callPackage ../applications/editors/glow {
inherit (darwin.apple_sdk.frameworks) Security;
};
glowing-bear = callPackage ../applications/networking/irc/glowing-bear { };