diff --git a/flake.nix b/flake.nix index 5b171c7..3d880ce 100644 --- a/flake.nix +++ b/flake.nix @@ -13,8 +13,8 @@ TODO Some utility commands: - `nix flake update --commit-lock-file` - `nix flake lock update-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";