From 65f08fc212eee259a95d9a3f0bb52e3b47853e7c Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 14 Jan 2019 23:03:50 +0100 Subject: osquery: fix build It seems as without the appropriate linker flag `-lcrypto` the `libcrypto.sh` can't be found by `ld` which broke one of the linker processes during compilation. See also https://hydra.nixos.org/build/87208819 --- pkgs/tools/system/osquery/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkgs/tools/system/osquery') diff --git a/pkgs/tools/system/osquery/default.nix b/pkgs/tools/system/osquery/default.nix index c7faf4d3889e8..32c085e2ec5f5 100644 --- a/pkgs/tools/system/osquery/default.nix +++ b/pkgs/tools/system/osquery/default.nix @@ -39,6 +39,10 @@ stdenv.mkDerivation rec { pkgconfig cmake pythonPackages.python pythonPackages.jinja2 doxygen fpm ]; + NIX_LDFLAGS = [ + "-lcrypto" + ]; + buildInputs = let gflags' = google-gflags.overrideAttrs (old: { cmakeFlags = stdenv.lib.filter (f: isNull (builtins.match ".*STATIC.*" f)) old.cmakeFlags; -- cgit 1.4.1