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
This commit is contained in:
Maximilian Bosch 2019-01-14 23:03:50 +01:00
parent 7788e5d536
commit 65f08fc212
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -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;