diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-03-22 08:13:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-22 08:13:37 -0500 |
commit | 4e6bf03504c9e09f067cc6dee6b5aeec43a1405c (patch) | |
tree | b014a4f89e335fac7758d35a7669792e5ad3c417 /pkgs/applications/blockchains | |
parent | afd997aab6e9b7a322198092c7828d6c560ac06f (diff) | |
parent | 7eb35cd1447a7c076bd4869c0e2e5f1ee428d70d (diff) |
Merge pull request #83099 from marsam/fix-buildGoModule-packages-darwin
treewide: fix buildGoModule packages on darwin
Diffstat (limited to 'pkgs/applications/blockchains')
-rw-r--r-- | pkgs/applications/blockchains/go-ethereum.nix | 4 | ||||
-rw-r--r-- | pkgs/applications/blockchains/lnd.nix | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/applications/blockchains/go-ethereum.nix b/pkgs/applications/blockchains/go-ethereum.nix index d8660967a4e09..80e17cf1138ae 100644 --- a/pkgs/applications/blockchains/go-ethereum.nix +++ b/pkgs/applications/blockchains/go-ethereum.nix @@ -1,4 +1,4 @@ -{ stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit }: +{ stdenv, buildGoModule, fetchFromGitHub, libobjc, IOKit, CoreServices }: buildGoModule rec { pname = "go-ethereum"; @@ -30,6 +30,8 @@ buildGoModule rec { "cmd/wnode" ]; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ]; + # Fix for usb-related segmentation faults on darwin propagatedBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ libobjc IOKit ]; diff --git a/pkgs/applications/blockchains/lnd.nix b/pkgs/applications/blockchains/lnd.nix index dd45746c8df5b..4be19beedc39f 100644 --- a/pkgs/applications/blockchains/lnd.nix +++ b/pkgs/applications/blockchains/lnd.nix @@ -1,4 +1,4 @@ -{ buildGoModule, fetchFromGitHub, lib }: +{ buildGoModule, fetchFromGitHub, stdenv, Security }: buildGoModule rec { pname = "lnd"; @@ -13,10 +13,12 @@ buildGoModule rec { modSha256 = "1pvcvpiz6ck8xkgpypchrq9kgkik0jxd7f3jhihbgldsh4zaqiaq"; - meta = with lib; { + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ]; + + meta = with stdenv.lib; { description = "Lightning Network Daemon"; homepage = "https://github.com/lightningnetwork/lnd"; - license = lib.licenses.mit; + license = licenses.mit; maintainers = with maintainers; [ cypherpunk2140 ]; }; } |