diff --git a/pkgs/by-name/li/live-server/package.nix b/pkgs/by-name/li/live-server/package.nix index 0257a426b04f..f02c1f314641 100644 --- a/pkgs/by-name/li/live-server/package.nix +++ b/pkgs/by-name/li/live-server/package.nix @@ -4,33 +4,37 @@ fetchFromGitHub, openssl, pkg-config, + nix-update-script, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "live-server"; - version = "0.10.0"; + version = "0.10.1"; src = fetchFromGitHub { owner = "lomirus"; repo = "live-server"; - rev = "v${version}"; - hash = "sha256-8NM3XJ7RC7cUNKN1DPW2huvkx7tfA8zDrETkwDMbaT8="; + rev = "v${finalAttrs.version}"; + hash = "sha256-0IP7F8+Vdl/h4+zcghRqowvzz6zjQYDTjMSZPuGOOj4="; }; useFetchCargoVendor = true; - cargoHash = "sha256-tUKhVDv+ZDGRpJC/sSYcQxYhGsAyOsflc+GeUyBaeEk="; + cargoHash = "sha256-MMeeUoj3vYd1lv15N3+qjHbn991IVMhIUCMd0isCNhk="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ]; - meta = with lib; { + passthru.updateScript = nix-update-script { }; + + meta = { description = "Local network server with live reload feature for static pages"; downloadPage = "https://github.com/lomirus/live-server/releases"; homepage = "https://github.com/lomirus/live-server"; - license = licenses.mit; + changelog = "https://github.com/lomirus/live-server/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.mit; mainProgram = "live-server"; - maintainers = [ maintainers.philiptaron ]; - platforms = platforms.unix; + maintainers = [ lib.maintainers.philiptaron ]; + platforms = lib.platforms.unix; }; -} +})