Skip to content

Commit d7cd4f3

Browse files
committed
incus-ui-canonical: add updateScript
1 parent af6f069 commit d7cd4f3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

pkgs/by-name/in/incus-ui-canonical/package.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
yarn,
1010
nixosTests,
1111
git,
12+
nix-update-script,
1213
}:
1314
let
1415
# this rarely changes https://github.com/zabbly/incus/blob/daily/patches/ui-canonical-renames.sed
@@ -72,7 +73,16 @@ stdenv.mkDerivation rec {
7273
runHook postInstall
7374
'';
7475

75-
passthru.tests.default = nixosTests.incus.ui;
76+
passthru = {
77+
tests.default = nixosTests.incus.ui;
78+
79+
updateScript = nix-update-script {
80+
extraArgs = [
81+
"--version-regex"
82+
"incus-([0-9\\.]+)"
83+
];
84+
};
85+
};
7686

7787
meta = {
7888
description = "Web user interface for Incus";

0 commit comments

Comments
 (0)