From 91fa92153788a48d0e6550bc30e0a78f25183aa5 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 13 Jul 2025 11:55:36 +0200 Subject: [PATCH] redlib: Use the unstable git updater The current redlib release is constantly out-of-date, and redlib will warn users if the deployed version is more than 20 commits behind the current HEAD. This means that we cannot rely on the releases, as our package otherwise effectively turns into a glorified redirection service for other (more up-to-date) redlib instances. --- pkgs/by-name/re/redlib/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/re/redlib/package.nix b/pkgs/by-name/re/redlib/package.nix index b5c569a9f01f..de988ae8e4a9 100644 --- a/pkgs/by-name/re/redlib/package.nix +++ b/pkgs/by-name/re/redlib/package.nix @@ -4,6 +4,7 @@ nixosTests, rustPlatform, fetchFromGitHub, + nix-update-script, }: rustPlatform.buildRustPackage rec { pname = "redlib"; @@ -61,8 +62,9 @@ rustPlatform.buildRustPackage rec { SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; }; - passthru.tests = { - inherit (nixosTests) redlib; + passthru = { + tests = nixosTests.redlib; + updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; }; meta = {