From c6b775300b0f637db3e92c768fa294de18e7765c 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 (cherry picked from commit 3c989f13bbd086d5f2310b62a2d0a91333027592) --- 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 1d0899a5f3f81..d19e55a54a0d1 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 408458dc18bd1e7a4f3d54346cd1c0616a791d7b 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 Ref: af240f2fd5a2b0aa2398da4618b1515ff46d4ab6 --- pkgs/by-name/ni/nix-forecast/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ni/nix-forecast/package.nix b/pkgs/by-name/ni/nix-forecast/package.nix index d19e55a54a0d1..8171e0f6a2ebb 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"; - 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 From 0150d321bd09fded3d90bbc7c0a8c1c2da400682 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 (cherry picked from commit 5d3993b95de59a146cd406bf8d58a60d6eac3c07) --- 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 8171e0f6a2ebb..dd509a5de0722 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";