From 3c989f13bbd086d5f2310b62a2d0a91333027592 Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 4 Jan 2025 00:17:47 -0500 Subject: [PATCH 1/3] nix-forecast: add updateScript --- pkgs/by-name/ni/nix-forecast/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/ni/nix-forecast/package.nix b/pkgs/by-name/ni/nix-forecast/package.nix index 06900abcab1e..6e2169b70e04 100644 --- a/pkgs/by-name/ni/nix-forecast/package.nix +++ b/pkgs/by-name/ni/nix-forecast/package.nix @@ -4,6 +4,7 @@ installShellFiles, makeBinaryWrapper, nix, + nix-update-script, rustPlatform, versionCheckHook, }: @@ -44,6 +45,10 @@ 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"; From af240f2fd5a2b0aa2398da4618b1515ff46d4ab6 Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 4 Jan 2025 00:18:26 -0500 Subject: [PATCH 2/3] nix-forecast: 0.1.0 -> 0.2.0 Diff: https://github.com/getchoo/nix-forecast/compare/refs/tags/v0.1.0...v0.2.0 Changelog: https://github.com/getchoo/nix-forecast/releases/tag/0.2.0 --- pkgs/by-name/ni/nix-forecast/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ni/nix-forecast/package.nix b/pkgs/by-name/ni/nix-forecast/package.nix index 6e2169b70e04..8171e0f6a2eb 100644 --- a/pkgs/by-name/ni/nix-forecast/package.nix +++ b/pkgs/by-name/ni/nix-forecast/package.nix @@ -11,16 +11,16 @@ rustPlatform.buildRustPackage rec { pname = "nix-forecast"; - version = "0.1.0"; + version = "0.2.0"; src = fetchFromGitHub { owner = "getchoo"; repo = "nix-forecast"; tag = "v${version}"; - hash = "sha256-jfS7DXEIVHihC0/kH9W8ZJDOjoWuxdRvLMfzknElvrg="; + hash = "sha256-kNSH2QbryNAfZXILQzMk9MHDzX4420KyQJOKW0Xrl7c="; }; - cargoHash = "sha256-EHqHdcMI1K7DqhmFfr0ipfAsyM7cP9/22bMs4uIV2To="; + cargoHash = "sha256-C5KPOwGD8jFqRuN6h1G6yO4lkl7t+RMzAE45r5d5lI0="; nativeBuildInputs = [ installShellFiles From 5d3993b95de59a146cd406bf8d58a60d6eac3c07 Mon Sep 17 00:00:00 2001 From: seth Date: Sat, 4 Jan 2025 00:25:40 -0500 Subject: [PATCH 3/3] nix-forecast: fix meta.changelog --- pkgs/by-name/ni/nix-forecast/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/ni/nix-forecast/package.nix b/pkgs/by-name/ni/nix-forecast/package.nix index 8171e0f6a2eb..dd509a5de072 100644 --- a/pkgs/by-name/ni/nix-forecast/package.nix +++ b/pkgs/by-name/ni/nix-forecast/package.nix @@ -52,7 +52,7 @@ rustPlatform.buildRustPackage rec { 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";