Added dev environments through flakes + edit and flake nushell commands
This commit is contained in:
parent
84bc5de209
commit
b85918d3b1
10 changed files with 179 additions and 309 deletions
47
flakes/flake.nix
Normal file
47
flakes/flake.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
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
|
||||
];
|
||||
};
|
||||
c-sharp = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
dotnetCorePackages.sdk_9_0-bin
|
||||
]
|
||||
}
|
||||
rice = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
cmatrix
|
||||
asciiquarium
|
||||
lavat
|
||||
cbonsai
|
||||
pipes
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue