non important commit
This commit is contained in:
parent
6d517609de
commit
e01a84c36f
12 changed files with 101 additions and 11 deletions
|
|
@ -13,13 +13,27 @@
|
|||
pkgs = import nixpkgs {
|
||||
inherit system overlays;
|
||||
};
|
||||
rustToolchain = pkgs.rust-bin.stable.latest.default;
|
||||
rustPlatform = pkgs.makeRustPlatform {
|
||||
cargo = rustToolchain;
|
||||
rustc = rustToolchain;
|
||||
};
|
||||
in {
|
||||
packages."${system}" = {
|
||||
default = rustPlatform.buildRustPackage {
|
||||
pname = "change_this";
|
||||
version = "0.1.0";
|
||||
src = ./.;
|
||||
cargoLock.lockFile = ./Cargo.lock;
|
||||
};
|
||||
};
|
||||
|
||||
devShells."${system}" = {
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
gcc
|
||||
gnumake
|
||||
rust-bin.stable.latest.default
|
||||
rustToolchain
|
||||
evcxr
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,5 +3,6 @@
|
|||
nix develop . --command bash -c "cargo new $1"
|
||||
|
||||
cp -r "$1"/* .
|
||||
|
||||
rm -fr "$1"
|
||||
|
||||
sed -i -e "s/change_this/$1/g" flake.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue