generated from MiaFoxcat/Polyform-perimeter-nc-noai
31 lines
635 B
Nix
31 lines
635 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
}:
|
|
pkgs.callPackage (
|
|
{
|
|
mkShell,
|
|
stdenv,
|
|
pkgs,
|
|
}:
|
|
mkShell {
|
|
strictDeps = true;
|
|
# host/target agnostic programs
|
|
depsBuildBuild = [
|
|
pkgs.picotool
|
|
pkgs.rustfmt
|
|
pkgs.rust-analyzer
|
|
];
|
|
# compilers & linkers & dependecy finding programs
|
|
nativeBuildInputs = [
|
|
pkgs.rustup
|
|
];
|
|
# libraries
|
|
buildInputs = [
|
|
|
|
];
|
|
shellHook = ''
|
|
export PATH="''${CARGO_HOME:-~/.cargo}/bin":"$PATH"
|
|
export PATH="''${RUSTUP_HOME:-~/.rustup}/toolchains/$RUSTC_VERSION-${stdenv.hostPlatform.rust.rustcTarget}/bin":"$PATH"
|
|
'';
|
|
}
|
|
) { }
|