From 2eacbec59539108d16e09d26d828858a926a0212 Mon Sep 17 00:00:00 2001 From: Qusic Date: Mon, 1 Apr 2024 10:26:40 +0800 Subject: [PATCH] st: add updateScript --- pkgs/applications/terminal-emulators/st/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/terminal-emulators/st/default.nix b/pkgs/applications/terminal-emulators/st/default.nix index 823777abe898..92bede34f381 100644 --- a/pkgs/applications/terminal-emulators/st/default.nix +++ b/pkgs/applications/terminal-emulators/st/default.nix @@ -12,6 +12,8 @@ , patches ? [ ] , extraLibs ? [ ] , nixosTests +# update script dependencies +, gitUpdater }: stdenv.mkDerivation (finalAttrs: { @@ -60,7 +62,12 @@ stdenv.mkDerivation (finalAttrs: { installFlags = [ "PREFIX=$(out)" ]; - passthru.tests.test = nixosTests.terminal-emulators.st; + passthru = { + tests.test = nixosTests.terminal-emulators.st; + updateScript = gitUpdater { + url = "git://git.suckless.org/st"; + }; + }; meta = with lib; { homepage = "https://st.suckless.org/";