From 33e2e0a61185ae9eb932e43432031d45ea002f92 Mon Sep 17 00:00:00 2001 From: gileri Date: Sun, 10 Nov 2024 23:27:34 +0100 Subject: [PATCH] tt-rss: Add updateScript --- pkgs/servers/tt-rss/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/tt-rss/default.nix b/pkgs/servers/tt-rss/default.nix index 1eb46a3a4b997..f939a641652c3 100644 --- a/pkgs/servers/tt-rss/default.nix +++ b/pkgs/servers/tt-rss/default.nix @@ -3,6 +3,7 @@ stdenv, fetchgit, nixosTests, + unstableGitUpdater, }: stdenv.mkDerivation rec { @@ -23,13 +24,14 @@ stdenv.mkDerivation rec { # see the code of Config::get_version(). you can check that the version in # the footer of the preferences pages is not UNKNOWN - echo "23.04" > $out/version_static.txt + echo "${version}" > $out/version_static.txt runHook postInstall ''; passthru = { inherit (nixosTests) tt-rss; + updateScript = unstableGitUpdater { hardcodeZeroVersion = true; }; }; meta = with lib; {