From b071db2351abfd4e3ec80d6d369ceb9e3c31ed2c Mon Sep 17 00:00:00 2001 From: Callum Dunster Date: Wed, 4 Sep 2024 16:51:21 +0200 Subject: [PATCH] fix: openssl dependency on NixOS systems Set the env variable `OPENSSL_NO_VENDOR` to `1` which forces the `openssl-sys` crate to use `pkg-config` to find the local version of openssl. --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index aaa446be..9436ef6b 100644 --- a/flake.nix +++ b/flake.nix @@ -75,6 +75,8 @@ pkgs.httpie pkgs.shellcheck pkgs.statix + pkgs.pkg-config + pkgs.openssl inputs'.holonix.packages.holochain inputs'.holonix.packages.lair-keystore inputs'.holonix.packages.hn-introspect @@ -87,6 +89,8 @@ pkgs.darwin.apple_sdk.frameworks.CoreFoundation ]; + OPENSSL_NO_VENDOR = 1; + shellHook = '' source ./scripts/influx.sh source ./scripts/telegraf.sh