todoist: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 05:49:00 -05:00
parent 7d3eb98d62
commit b6b516f7cf
2 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule rec {
pname = "todoist";
@ -13,10 +13,12 @@ buildGoModule rec {
modSha256 = "1nnp5ijz4n34gc97rar4wlvlbx21ndpjyb2mc6gxdk1wzx3mgswp";
meta = {
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
meta = with stdenv.lib; {
homepage = https://github.com/sachaos/todoist;
description = "Todoist CLI Client";
license = lib.licenses.mit;
platforms = lib.platforms.unix;
license = licenses.mit;
platforms = platforms.unix;
};
}

View File

@ -10935,7 +10935,9 @@ in
tfsec = callPackage ../development/tools/analysis/tfsec { };
todoist = callPackage ../applications/misc/todoist { };
todoist = callPackage ../applications/misc/todoist {
inherit (darwin.apple_sdk.frameworks) Security;
};
todoist-electron = callPackage ../applications/misc/todoist-electron { };