mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-28 00:00:03 +03:00
Merge pull request #1650 from x10an14/fork/add-flake-outputs
feat(flake): Add defaults to commands in flake
This commit is contained in:
commit
626e2749a6
13
flake.nix
13
flake.nix
|
@ -61,5 +61,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