Skip to content

Commit

Permalink
fix(flake): fix openssl path
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Jun 16, 2024
1 parent 28d9392 commit 57dda79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
imports = [ ];
systems = [ "x86_64-linux" "aarch64-linux" ];

perSystem = { config, self', inputs', lib, nixpkgs, pkgs, system, ... }:
perSystem = { config, self', inputs', lib, pkgs, system, ... }:
let
toolchain = with fenix.packages.${system}; combine [
(fromToolchainFile {
Expand Down Expand Up @@ -51,8 +51,11 @@
nativeBuildInputs = with pkgs; [ cmake pkg-config ];
buildInputs = with pkgs; [ openssl ];

# fix openssl-sys
# fix openssl
OPENSSL_NO_VENDOR = true;
OPENSSL_DIR = "${pkgs.openssl.dev}";
OPENSSL_LIB_DIR = "${pkgs.openssl.out}/lib";
OPENSSL_INCLUDE_DIR = "${pkgs.openssl.dev}/include/";
};

cargoArtifacts = craneLib.buildDepsOnly commonArgs;
Expand Down

0 comments on commit 57dda79

Please sign in to comment.