non important commit
This commit is contained in:
parent
f32fd2b847
commit
dd58e1d60e
5 changed files with 36 additions and 2 deletions
|
|
@ -27,7 +27,7 @@
|
|||
buildInputs = with pkgs; [
|
||||
gcc
|
||||
gnumake
|
||||
rust-bin.beta.latest.default
|
||||
rust-bin.stable.latest.default
|
||||
evcxr
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
}
|
||||
|
||||
if ($"./init.sh" | path type) == "file" {
|
||||
bash "init.sh"
|
||||
bash "init.sh ($name)"
|
||||
rm "init.sh"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
# Empty project
|
||||
|
|
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
nix develop . --command bash -c "cargo new $1"
|
||||
|
||||
cp "$1/*" .
|
||||
|
||||
rm -fr "$1"
|
||||
Loading…
Add table
Add a link
Reference in a new issue