non important commit

This commit is contained in:
maxstrb 2026-02-19 10:19:10 +01:00
parent 6d517609de
commit e01a84c36f
12 changed files with 101 additions and 11 deletions

View file

@ -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
];
};

View file

@ -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