Set default package

main
Elnu 1 year ago
parent e5fc8f4d29
commit 16e3b38d43

@ -13,8 +13,8 @@ TODO
Some utility commands: Some utility commands:
- `nix flake update --commit-lock-file` - `nix flake update --commit-lock-file`
- `nix flake lock update-input <input>` - `nix flake lock update-input <input>`
- `nix build .#helloworld` - `nix build .#helloworld` or `nix build .`
- `nix run .#helloworld` - `nix run .#helloworld` or `nix run .`
Updating `cargoHash`: Updating `cargoHash`:
- Set `cargoHash` to an empty string - 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 ]; inputsFrom = with self.packages.${system}; [ helloworld ];
}; };
packages.${system} = { packages.${system} = {
default = self.packages.${system}.helloworld;
helloworld = pkgs.rustPlatform.buildRustPackage (rustSettings // { helloworld = pkgs.rustPlatform.buildRustPackage (rustSettings // {
pname = "helloworld"; pname = "helloworld";
version = "0.1.0"; version = "0.1.0";

Loading…
Cancel
Save