mirror of
https://github.com/danbulant/convex-macros
synced 2026-05-19 03:58:31 +00:00
23 lines
650 B
Nix
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}";
|
|
}
|