diff --git a/pkgs/by-name/ni/nix-forecast/package.nix b/pkgs/by-name/ni/nix-forecast/package.nix index 1d0899a5f3f81..dd509a5de0722 100644 --- a/pkgs/by-name/ni/nix-forecast/package.nix +++ b/pkgs/by-name/ni/nix-forecast/package.nix @@ -4,22 +4,23 @@ installShellFiles, makeBinaryWrapper, nix, + nix-update-script, rustPlatform, versionCheckHook, }: rustPlatform.buildRustPackage rec { pname = "nix-forecast"; - version = "0.1.0"; + version = "0.2.0"; src = fetchFromGitHub { owner = "getchoo"; repo = "nix-forecast"; - rev = "refs/tags/v${version}"; - hash = "sha256-jfS7DXEIVHihC0/kH9W8ZJDOjoWuxdRvLMfzknElvrg="; + tag = "v${version}"; + hash = "sha256-kNSH2QbryNAfZXILQzMk9MHDzX4420KyQJOKW0Xrl7c="; }; - cargoHash = "sha256-EHqHdcMI1K7DqhmFfr0ipfAsyM7cP9/22bMs4uIV2To="; + cargoHash = "sha256-C5KPOwGD8jFqRuN6h1G6yO4lkl7t+RMzAE45r5d5lI0="; nativeBuildInputs = [ installShellFiles @@ -44,10 +45,14 @@ rustPlatform.buildRustPackage rec { COMPLETION_DIR = "completions"; }; + passthru = { + updateScript = nix-update-script { }; + }; + meta = { description = "Check the forecast for today's Nix builds"; homepage = "https://github.com/getchoo/nix-forecast"; - changelog = "https://github.com/getchoo/nix-forecast/releases/tag/${version}"; + changelog = "https://github.com/getchoo/nix-forecast/releases/tag/v${version}"; license = lib.licenses.mpl20; maintainers = with lib.maintainers; [ getchoo ]; mainProgram = "nix-forecast";