1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-12-12 11:14:55 +02:00

feat(flake): Add defaults to commands in flake

So that:
- `nix build .#`, and
- `nix run .#` both work.
This commit is contained in:
x10an14 2023-08-30 18:09:41 +02:00
parent 2d1da2ab57
commit 60b8487600
No known key found for this signature in database
GPG Key ID: 999146D53BA5A65E

View File

@ -60,5 +60,18 @@
clippy
] ++ cargoBuildInputs;
};
apps = let
rustlings-app = {
type = "app";
program = "${rustlings}/bin/rustlings";
};
in {
default = rustlings-app;
rustlings = rustlings-app;
};
packages = {
inherit rustlings;
default = rustlings;
};
});
}