From a0912c4aa4723516055074932c826bbd66a1dd81 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Fri, 11 Apr 2025 15:56:13 -0300 Subject: [PATCH] cosmic-notifications: add updateScript --- .../co/cosmic-notifications/package.nix | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/co/cosmic-notifications/package.nix b/pkgs/by-name/co/cosmic-notifications/package.nix index 9e34398e0b19..48d64818970b 100644 --- a/pkgs/by-name/co/cosmic-notifications/package.nix +++ b/pkgs/by-name/co/cosmic-notifications/package.nix @@ -7,6 +7,7 @@ libcosmicAppHook, which, nixosTests, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -44,13 +45,24 @@ rustPlatform.buildRustPackage (finalAttrs: { "target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-notifications" ]; - passthru.tests = { - inherit (nixosTests) - cosmic - cosmic-autologin - cosmic-noxwayland - cosmic-autologin-noxwayland - ; + passthru = { + tests = { + inherit (nixosTests) + cosmic + cosmic-autologin + cosmic-noxwayland + cosmic-autologin-noxwayland + ; + }; + + updateScript = nix-update-script { + extraArgs = [ + "--version" + "unstable" + "--version-regex" + "epoch-(.*)" + ]; + }; }; meta = {