cosmic-edit: add updateScript

This commit is contained in:
Heitor Augusto
2025-09-25 13:56:57 -03:00
parent c265b8a561
commit fd9eb1cd15
+19 -7
View File
@@ -11,6 +11,7 @@
fontconfig,
freetype,
nixosTests,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -56,13 +57,24 @@ rustPlatform.buildRustPackage (finalAttrs: {
"target/${stdenv.hostPlatform.rust.cargoShortTarget}/release/cosmic-edit"
];
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 = {