diff options
| author | x10an14 <x10an14@users.noreply.github.com> | 2023-08-30 18:09:41 +0200 |
|---|---|---|
| committer | x10an14 <x10an14@users.noreply.github.com> | 2023-08-30 18:09:41 +0200 |
| commit | 60b848760033ee3f7a6522929f7b4aa21064c5e2 (patch) | |
| tree | 23ce43235e768555fb84eb2c29a41792fc336a66 /flake.nix | |
| parent | 2d1da2ab57080e32725612ffddb82006f47f7f71 (diff) | |
feat(flake): Add defaults to commands in flake
So that:
- `nix build .#`, and
- `nix run .#` both work.
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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; + }; }); } |
