summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Thwaites <danthwaites30@btinternet.com>2022-05-28 11:09:34 +0100
committerDaniel Thwaites <danthwaites30@btinternet.com>2022-05-28 11:09:34 +0100
commit5ac9f8ef59f1650d35743d16ce6b999e4ee8cabb (patch)
treeba0151140e5ba60f0251d3a1c0df85e389317ce6
parenteb41f632ff07d5f1ae0416cb768afbeca41ca54c (diff)
downloadnixpkgs-5ac9f8ef59f1650d35743d16ce6b999e4ee8cabb.tar
nixpkgs-5ac9f8ef59f1650d35743d16ce6b999e4ee8cabb.tar.gz
nixpkgs-5ac9f8ef59f1650d35743d16ce6b999e4ee8cabb.tar.bz2
nixpkgs-5ac9f8ef59f1650d35743d16ce6b999e4ee8cabb.tar.lz
nixpkgs-5ac9f8ef59f1650d35743d16ce6b999e4ee8cabb.tar.xz
nixpkgs-5ac9f8ef59f1650d35743d16ce6b999e4ee8cabb.tar.zst
nixpkgs-5ac9f8ef59f1650d35743d16ce6b999e4ee8cabb.zip
ipfs: build with openssl
From the readme:
Building with OpenSSL should significantly reduce the background
CPU usage on nodes that frequently make or receive new connections.
-rw-r--r--pkgs/applications/networking/ipfs/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/networking/ipfs/default.nix b/pkgs/applications/networking/ipfs/default.nix
index e501137fa83..f0a3aaa3ba1 100644
--- a/pkgs/applications/networking/ipfs/default.nix
+++ b/pkgs/applications/networking/ipfs/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchurl, nixosTests }:
+{ lib, buildGoModule, fetchurl, nixosTests, openssl, pkg-config }:
 
 buildGoModule rec {
   pname = "ipfs";
@@ -25,6 +25,10 @@ buildGoModule rec {
 
   subPackages = [ "cmd/ipfs" ];
 
+  buildInputs = [ openssl ];
+  nativeBuildInputs = [ pkg-config ];
+  tags = [ "openssl" ];
+
   passthru.tests.ipfs = nixosTests.ipfs;
 
   vendorSha256 = null;