ac-control/shell.nix
2025-08-21 08:50:30 +02:00

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"
'';
}
) { }