26 lines
493 B
Nix
26 lines
493 B
Nix
|
{pkgs ? import <nixpkgs> {}}: let
|
||
|
rust-toolchain = pkgs.symlinkJoin {
|
||
|
name = "rust-toolchain";
|
||
|
paths = with pkgs; [rustc cargo rustPlatform.rustcSrc rustfmt clippy];
|
||
|
};
|
||
|
in
|
||
|
pkgs.mkShell {
|
||
|
nativeBuildInputs = with pkgs.buildPackages; [
|
||
|
rust-toolchain
|
||
|
|
||
|
pkg-config
|
||
|
xe
|
||
|
xz
|
||
|
|
||
|
cargo-tarpaulin
|
||
|
openssl
|
||
|
sqlite
|
||
|
gcc
|
||
|
gnumake
|
||
|
|
||
|
# dotnet-sdk_8
|
||
|
];
|
||
|
|
||
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
||
|
}
|