summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 5dbca5c..f65c290 100644
--- a/flake.nix
+++ b/flake.nix
@@ -25,6 +25,7 @@
version = "5.5.1";
buildInputs = cargoBuildInputs;
+ nativeBuildInputs = [pkgs.git];
src = with pkgs.lib; cleanSourceWith {
src = self;
@@ -60,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;
+ };
});
}