diff options
| author | Sophie Forrest <git@sophieforrest.com> | 2024-11-10 15:53:23 +1300 |
|---|---|---|
| committer | Sophie Forrest <git@sophieforrest.com> | 2024-11-10 15:53:23 +1300 |
| commit | 2d6245e05d6f153d911ce5763c3d8ac7d42b3171 (patch) | |
| tree | 7fe2c76f5506f97a21f5307c9c60805d0f2901ec /flake.nix | |
| parent | 76eb2064952b548a3e171cb41c69939640a1d657 (diff) | |
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.
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 9 |
1 files changed, 2 insertions, 7 deletions
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 = { |