diff options
-rw-r--r-- | pkgs/applications/editors/glow/default.nix | 6 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 7 insertions, 3 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; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c6cf178b390a..fb5c2ff4af1e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { }; |