feat(flake): Add defaults to commands in flake

So that:
- `nix build .#`, and
- `nix run .#` both work.
pull/1650/head
x10an14 9 months ago
parent 2d1da2ab57
commit 60b8487600
No known key found for this signature in database
GPG Key ID: 999146D53BA5A65E

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

Loading…
Cancel
Save