alock: add update script

This commit is contained in:
jopejoe1 2024-04-26 08:44:05 +02:00
parent 3bcba25270
commit d80c38e753

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
{ lib, stdenv, fetchFromGitHub, gitUpdater, pkg-config, autoreconfHook
, libX11, pam, libgcrypt, libXrender, imlib2 }:
stdenv.mkDerivation rec {
@ -27,6 +27,11 @@ stdenv.mkDerivation rec {
pam libgcrypt libXrender imlib2
];
passthru.updateScript = gitUpdater {
rev-prefix = "v";
ignoredVersions = "^[^.]+$"; # ignore versions without a dot
};
meta = with lib; {
homepage = "https://github.com/Arkq/alock";
description = "Simple screen lock application for X server";