From 4dc2975d03608a6e46f0489a9069bcab58a4119c Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Sat, 26 Aug 2023 16:46:22 -0400 Subject: [PATCH] Add OpenSSL dependency to flake --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index d84a727..0377c65 100644 --- a/flake.nix +++ b/flake.nix @@ -14,6 +14,9 @@ src = ./.; cargoBuildFlags = "-p cli"; cargoLock.lockFile = ./Cargo.lock; + + nativeBuildInputs = [ pkgs.pkg-config ]; + PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig"; }; packages.default = self.packages.${system}.ggelo; @@ -21,6 +24,8 @@ devShells.default = pkgs.mkShell { inputsFrom = [ self.packages.${system}.ggelo ]; packages = [ pkgs.rust-analyzer ]; + + PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig"; }; }); }