build: add mainProgram and use new flake layout
This commit is contained in:
parent
37dc5c727a
commit
00d3c0ce84
1 changed files with 5 additions and 2 deletions
|
@ -12,8 +12,11 @@
|
||||||
naersk-lib = pkgs.callPackage naersk { };
|
naersk-lib = pkgs.callPackage naersk { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
defaultPackage = naersk-lib.buildPackage ./.;
|
packages.default = naersk-lib.buildPackage {
|
||||||
devShell = with pkgs; mkShell {
|
src = ./.;
|
||||||
|
meta.mainProgram = "timers";
|
||||||
|
};
|
||||||
|
devShells.default = with pkgs; mkShell {
|
||||||
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy rust-analyzer ];
|
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy rust-analyzer ];
|
||||||
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue