Set default package
This commit is contained in:
parent
e5fc8f4d29
commit
16e3b38d43
1 changed files with 3 additions and 2 deletions
|
@ -13,8 +13,8 @@ TODO
|
|||
Some utility commands:
|
||||
- `nix flake update --commit-lock-file`
|
||||
- `nix flake lock update-input <input>`
|
||||
- `nix build .#helloworld`
|
||||
- `nix run .#helloworld`
|
||||
- `nix build .#helloworld` or `nix build .`
|
||||
- `nix run .#helloworld` or `nix run .`
|
||||
|
||||
Updating `cargoHash`:
|
||||
- Set `cargoHash` to an empty string
|
||||
|
@ -61,6 +61,7 @@ rust-project TODO: write shell script for automatically updating `cargoHash`
|
|||
inputsFrom = with self.packages.${system}; [ helloworld ];
|
||||
};
|
||||
packages.${system} = {
|
||||
default = self.packages.${system}.helloworld;
|
||||
helloworld = pkgs.rustPlatform.buildRustPackage (rustSettings // {
|
||||
pname = "helloworld";
|
||||
version = "0.1.0";
|
||||
|
|
Loading…
Add table
Reference in a new issue