slock: add updateScript

This commit is contained in:
Qusic 2024-03-26 12:48:44 +08:00
parent 9078780158
commit 50063d79d5

View File

@ -2,7 +2,10 @@
, xorgproto, libX11, libXext, libXrandr, libxcrypt
# default header can be obtained from
# https://git.suckless.org/slock/tree/config.def.h
, conf ? null }:
, conf ? null
# update script dependencies
, gitUpdater
}:
stdenv.mkDerivation (finalAttrs: {
pname = "slock";
@ -25,6 +28,10 @@ stdenv.mkDerivation (finalAttrs: {
makeFlags = [ "CC:=$(CC)" ];
passthru.updateScript = gitUpdater {
url = "git://git.suckless.org/slock";
};
meta = with lib; {
homepage = "https://tools.suckless.org/slock";
description = "Simple X display locker";