mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-25 23:04:17 -05: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
1 changed files with 13 additions and 0 deletions
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