gotify-cli: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:10:00 -05:00
parent 121bc52a52
commit 33f90726c3
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, stdenv, Security }:
buildGoModule rec {
pname = "gotify-cli";
@ -17,7 +17,9 @@ buildGoModule rec {
mv $out/bin/cli $out/bin/gotify
'';
meta = with lib; {
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
license = licenses.mit;
homepage = https://github.com/gotify/cli;
description = "A command line interface for pushing messages to gotify/server.";

View file

@ -1908,7 +1908,9 @@ in
gosu = callPackage ../tools/misc/gosu { };
gotify-cli = callPackage ../tools/misc/gotify-cli { };
gotify-cli = callPackage ../tools/misc/gotify-cli {
inherit (darwin.apple_sdk.frameworks) Security;
};
gping = callPackage ../tools/networking/gping { };