Skip to content

Commit

Permalink
fix: install wasmenv with flake
Browse files Browse the repository at this point in the history
  • Loading branch information
ayys committed Dec 30, 2024
1 parent 1bca2f7 commit 3f9fede
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,20 @@
wasmenv = naersk-lib.buildPackage ./.;
};
devShell = with pkgs; mkShell {
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ];
buildInputs = [
cargo
rustc
rustfmt
pre-commit
rustPackages.clippy
openssl.dev # Add OpenSSL development libraries
];

# Environment variables for `openssl-sys` crate
OPENSSL_DIR = "${pkgs.openssl.dev}";
OPENSSL_LIB_DIR = "${pkgs.openssl.out}/lib";
OPENSSL_INCLUDE_DIR = "${pkgs.openssl.dev}/include";
RUSTFLAGS = "-C link-arg=-L${pkgs.openssl.out}/lib";
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
}
Expand Down

0 comments on commit 3f9fede

Please sign in to comment.