From 81ce876d8ba8086e3110a538f89d95edfe8364c9 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 21 Aug 2020 16:11:21 +0200 Subject: [PATCH] nix: add dependencies to shell.nix --- shell.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/shell.nix b/shell.nix index 10654f9c..89b2034c 100644 --- a/shell.nix +++ b/shell.nix @@ -3,6 +3,16 @@ with import {}; stdenv.mkDerivation { name = "blockbook-dev"; buildInputs = [ + bzip2 go + lz4 + pkg-config + rocksdb + snappy + zeromq + zlib ]; + shellHook = '' + export CGO_LDFLAGS="-L${stdenv.cc.cc.lib}/lib -lrocksdb -lz -lbz2 -lsnappy -llz4 -lm -lstdc++" + ''; }