echoip: fix build on darwin

This commit is contained in:
Mario Rodas 2020-03-21 04:55:00 -05:00
parent ee41c79c9a
commit ecec7dff61
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
buildGoModule {
pname = "echoip";
@ -13,6 +13,8 @@ buildGoModule {
modSha256 = "025p891klwpid5fw4z39fimgfkwgkcwqpn5276hflzdp1hfv35ly";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
outputs = [ "out" "index" ];
postInstall = ''
@ -20,7 +22,7 @@ buildGoModule {
cp $src/index.html $index/index.html
'';
meta = with lib; {
meta = with stdenv.lib; {
homepage = https://github.com/mpolden/echoip;
license = licenses.bsd3;
maintainers = with maintainers; [ rvolosatovs ];

View file

@ -19030,7 +19030,9 @@ in
eaglemode = callPackage ../applications/misc/eaglemode { };
echoip = callPackage ../servers/echoip { };
echoip = callPackage ../servers/echoip {
inherit (darwin.apple_sdk.frameworks) Security;
};
eclipses = recurseIntoAttrs (callPackage ../applications/editors/eclipse {
jdk = jdk11;