From 2d6245e05d6f153d911ce5763c3d8ac7d42b3171 Mon Sep 17 00:00:00 2001 From: Sophie Forrest Date: Sun, 10 Nov 2024 15:53:23 +1300 Subject: feat: move from openssl to rustls This removes external dependencies on pkg-config and openssl, only requiring the rustls dependency, meaning the entire program is in Rust, simplifying the build system on all platforms. --- flake.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 3d91e0a..38ff191 100644 --- a/flake.nix +++ b/flake.nix @@ -32,20 +32,15 @@ perSystem = { config, - lib, pkgs, ... }: { - devShells.default = pkgs.mkShell rec { + devShells.default = pkgs.mkShell { shellHook = '' ${config.pre-commit.installationScript} ''; - buildInputs = with pkgs; [cargo-nextest] ++ nativeBuildInputs; - nativeBuildInputs = with pkgs; [openssl openssl.dev pkg-config]; - - LD_LIBRARY_PATH = lib.makeLibraryPath [pkgs.openssl]; - PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig"; + buildInputs = with pkgs; [cargo-nextest]; }; pre-commit.settings.hooks = { -- cgit 1.4.1