summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2023-09-04 13:41:37 +0200
committerGitHub <noreply@github.com>2023-09-04 13:41:37 +0200
commit626e2749a6d635f5cb3d9a81f249c9e12638d950 (patch)
treef177f2d86832366796f3b97c0d99c10ed2dd9def
parentb39d896db764289bdd3c782ad0d7c46eec05d91e (diff)
parent60b848760033ee3f7a6522929f7b4aa21064c5e2 (diff)
Merge pull request #1650 from x10an14/fork/add-flake-outputs
feat(flake): Add defaults to commands in flake
-rw-r--r--flake.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index c6360ee..f65c290 100644
--- a/flake.nix
+++ b/flake.nix
@@ -61,5 +61,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;
+ };
});
}