mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-28 00:00:03 +03:00
feat(flake): Add defaults to commands in flake
So that: - `nix build .#`, and - `nix run .#` both work.
This commit is contained in:
parent
2d1da2ab57
commit
60b8487600
13
flake.nix
13
flake.nix
|
@ -60,5 +60,18 @@
|
||||||
clippy
|
clippy
|
||||||
] ++ cargoBuildInputs;
|
] ++ cargoBuildInputs;
|
||||||
};
|
};
|
||||||
|
apps = let
|
||||||
|
rustlings-app = {
|
||||||
|
type = "app";
|
||||||
|
program = "${rustlings}/bin/rustlings";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
default = rustlings-app;
|
||||||
|
rustlings = rustlings-app;
|
||||||
|
};
|
||||||
|
packages = {
|
||||||
|
inherit rustlings;
|
||||||
|
default = rustlings;
|
||||||
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue