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.
This commit is contained in:
Benedikt Peetz 2025-07-13 11:55:36 +02:00
parent 3cad0c8e96
commit 91fa921537
No known key found for this signature in database
GPG Key ID: B6139BCB07CE946D

View File

@ -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 = {