59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
description = "My rust development shell";
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
zig.url = "github:mitchellh/zig-overlay";
|
|
};
|
|
outputs = {nixpkgs, ...} @ inputs: let
|
|
system = "x86_64-linux";
|
|
overlays = [(import inputs.rust-overlay)];
|
|
pkgs = import nixpkgs {
|
|
inherit system overlays;
|
|
};
|
|
in {
|
|
devShells."${system}" = {
|
|
c = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
gcc
|
|
gnumake
|
|
];
|
|
};
|
|
|
|
rust = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
gcc
|
|
gnumake
|
|
rust-bin.beta.latest.default
|
|
evcxr
|
|
];
|
|
};
|
|
|
|
zig = pkgs.mkShell {
|
|
buildInputs = [
|
|
inputs.zig.packages.${system}.master
|
|
];
|
|
};
|
|
|
|
c-sharp = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
dotnetCorePackages.sdk_9_0-bin
|
|
];
|
|
};
|
|
|
|
rice = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
cmatrix
|
|
asciiquarium
|
|
lavat
|
|
cbonsai
|
|
pipes
|
|
cava
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|