phoc: add passthru.updateScript

updateScript is documented at
https://nixos.org/manual/nixpkgs/unstable/#var-passthru-updateScript
This commit is contained in:
Tom Fitzhenry 2023-10-03 01:04:26 +11:00 committed by tomf
parent 82ec4173ce
commit ad51bcc62a

View File

@ -17,6 +17,7 @@
, libxkbcommon
, wlroots
, xorg
, gitUpdater
, nixosTests
}:
@ -71,7 +72,13 @@ in stdenv.mkDerivation rec {
patchShebangs build-aux/post_install.py
'';
passthru.tests.phosh = nixosTests.phosh;
passthru = {
tests.phosh = nixosTests.phosh;
updateScript = gitUpdater {
url = "https://gitlab.gnome.org/World/Phosh/phoc";
rev-prefix = "v";
};
};
meta = with lib; {
description = "Wayland compositor for mobile phones like the Librem 5";