glow: fix build on darwin
This commit is contained in:
parent
7faf44250d
commit
73cb29e6d9
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "glow";
|
pname = "glow";
|
||||||
@ -13,9 +13,11 @@ buildGoModule rec {
|
|||||||
|
|
||||||
modSha256 = "0r0yq7kgz7i1wf4gxxihdrn1c8mi4wcyhadncxbln24s9c5apxsf";
|
modSha256 = "0r0yq7kgz7i1wf4gxxihdrn1c8mi4wcyhadncxbln24s9c5apxsf";
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
||||||
|
|
||||||
buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
|
buildFlagsArray = [ "-ldflags=" "-X=main.Version=${version}" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Render markdown on the CLI";
|
description = "Render markdown on the CLI";
|
||||||
homepage = "https://github.com/charmbracelet/glow";
|
homepage = "https://github.com/charmbracelet/glow";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
@ -19690,7 +19690,9 @@ in
|
|||||||
inherit (darwin) IOKit;
|
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 { };
|
glowing-bear = callPackage ../applications/networking/irc/glowing-bear { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user