summary refs log tree commit diff
path: root/pkgs/servers/rippled/default.nix
diff options
context:
space:
mode:
authorfreezeboy <freezeboy@users.noreply.github.com>2020-11-18 23:54:29 +0100
committerfreezeboy <freezeboy@users.noreply.github.com>2020-11-18 23:54:29 +0100
commit259056fae4d2ddb9ab1ac5abaed31e80c931764e (patch)
treebe9e29bdcb4055327f843602a096712eeb0d2a5e /pkgs/servers/rippled/default.nix
parente4883cb78ec9db5467398e971ab1e165a3e5f9bf (diff)
downloadnixpkgs-259056fae4d2ddb9ab1ac5abaed31e80c931764e.tar
nixpkgs-259056fae4d2ddb9ab1ac5abaed31e80c931764e.tar.gz
nixpkgs-259056fae4d2ddb9ab1ac5abaed31e80c931764e.tar.bz2
nixpkgs-259056fae4d2ddb9ab1ac5abaed31e80c931764e.tar.lz
nixpkgs-259056fae4d2ddb9ab1ac5abaed31e80c931764e.tar.xz
nixpkgs-259056fae4d2ddb9ab1ac5abaed31e80c931764e.tar.zst
nixpkgs-259056fae4d2ddb9ab1ac5abaed31e80c931764e.zip
rippled: unbreak adding libnsl
Diffstat (limited to 'pkgs/servers/rippled/default.nix')
-rw-r--r--pkgs/servers/rippled/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/servers/rippled/default.nix b/pkgs/servers/rippled/default.nix
index c9095339cc3..c95d043106c 100644
--- a/pkgs/servers/rippled/default.nix
+++ b/pkgs/servers/rippled/default.nix
@@ -1,5 +1,5 @@
 { stdenv, fetchFromGitHub, fetchgit, fetchurl, runCommand, git, cmake, pkgconfig
-, openssl,  zlib, boost, grpc, c-ares, abseil-cpp, protobuf3_8 }:
+, openssl,  zlib, boost, grpc, c-ares, abseil-cpp, protobuf3_8, libnsl }:
 
 let
   sqlite3 = fetchurl rec {
@@ -9,7 +9,7 @@ let
   };
 
   boostSharedStatic = boost.override {
-    enableShared = true; 
+    enableShared = true;
     enabledStatic = true;
   };
 
@@ -130,7 +130,7 @@ in stdenv.mkDerivation rec {
   cmakeFlags = ["-Dstatic=OFF" "-DBoost_NO_BOOST_CMAKE=ON"];
 
   nativeBuildInputs = [ pkgconfig cmake git ];
-  buildInputs = [ openssl openssl.dev boostSharedStatic zlib grpc c-ares c-ares.cmake-config abseil-cpp protobuf3_8 ];
+  buildInputs = [ openssl openssl.dev boostSharedStatic zlib grpc c-ares c-ares.cmake-config abseil-cpp protobuf3_8 libnsl ];
 
   preConfigure = ''
     export HOME=$PWD
@@ -146,9 +146,9 @@ in stdenv.mkDerivation rec {
     git config --global url."file://${google-test}".insteadOf "${google-test.url}"
     git config --global url."file://${date}".insteadOf "${date.url}"
 
-    substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "http://www.sqlite.org/2018/sqlite-amalgamation-3260000.zip" "" 
-    substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "https://www2.sqlite.org/2018/sqlite-amalgamation-3260000.zip" "" 
-    substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "http://www2.sqlite.org/2018/sqlite-amalgamation-3260000.zip" "" 
+    substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "http://www.sqlite.org/2018/sqlite-amalgamation-3260000.zip" ""
+    substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "https://www2.sqlite.org/2018/sqlite-amalgamation-3260000.zip" ""
+    substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "http://www2.sqlite.org/2018/sqlite-amalgamation-3260000.zip" ""
     substituteInPlace Builds/CMake/deps/Sqlite.cmake --replace "URL ${sqlite3.url}" "URL ${sqlite3}"
   '';