non important commit

This commit is contained in:
maxstrb 2025-09-27 14:00:06 +02:00
parent f32fd2b847
commit dd58e1d60e
5 changed files with 36 additions and 2 deletions

View file

@ -27,7 +27,7 @@
buildInputs = with pkgs; [
gcc
gnumake
rust-bin.beta.latest.default
rust-bin.stable.latest.default
evcxr
];
};

View file

@ -41,7 +41,7 @@
}
if ($"./init.sh" | path type) == "file" {
bash "init.sh"
bash "init.sh ($name)"
rm "init.sh"
}

View file

@ -0,0 +1 @@
# Empty project

View file

@ -0,0 +1,28 @@
{
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}" = {
default = pkgs.mkShell {
buildInputs = with pkgs; [
gcc
gnumake
rust-bin.stable.latest.default
evcxr
];
};
};
};
}

View file

@ -0,0 +1,5 @@
nix develop . --command bash -c "cargo new $1"
cp "$1/*" .
rm -fr "$1"