convex-macros/shell.nix
2025-07-09 21:30:11 +02:00

23 lines
650 B
Nix

{ pkgs ? import <nixpkgs> {} }:
let
# rust-rover things
fenix = import (fetchTarball "https://github.com/nix-community/fenix/archive/main.tar.gz") { };
rust-toolchain =
fenix.default.toolchain;
in
pkgs.mkShell rec {
buildInputs = with pkgs;[
openssl
pkg-config
cmake
zlib
rust-toolchain
];
nativeBuildInputs = with pkgs; [
pkg-config
];
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath buildInputs}";
OPENSSL_DIR="${pkgs.openssl.dev}";
OPENSSL_LIB_DIR="${pkgs.openssl.out}/lib";
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
}