2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2024-01-25 14:12:00 +00:00
|
|
|
, fetchFromGitea
|
2023-08-10 07:59:29 +00:00
|
|
|
, libxkbcommon
|
|
|
|
, pam
|
2023-01-11 07:51:40 +00:00
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
2023-08-10 07:59:29 +00:00
|
|
|
, wayland
|
2023-01-11 07:51:40 +00:00
|
|
|
, wayland-protocols
|
2023-11-16 04:20:00 +00:00
|
|
|
, zig_0_11
|
2022-11-21 17:40:18 +00:00
|
|
|
}:
|
2023-08-10 07:59:29 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-11-21 17:40:18 +00:00
|
|
|
pname = "waylock";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.6.4";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
2022-11-21 17:40:18 +00:00
|
|
|
owner = "ifreund";
|
2023-08-10 07:59:29 +00:00
|
|
|
repo = "waylock";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
fetchSubmodules = true;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-RSAUSlsBB9IphvdSiFqJIvyhhJoAKKb+KyGhdoTa3vs=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
scdoc
|
|
|
|
wayland
|
2023-11-16 04:20:00 +00:00
|
|
|
zig_0_11.hook
|
2023-08-10 07:59:29 +00:00
|
|
|
];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wayland-protocols
|
|
|
|
libxkbcommon
|
|
|
|
pam
|
|
|
|
];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
zigBuildFlags = [ "-Dman-pages" ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
meta = {
|
2022-11-21 17:40:18 +00:00
|
|
|
homepage = "https://github.com/ifreund/waylock";
|
|
|
|
description = "A small screenlocker for Wayland compositors";
|
2023-08-10 07:59:29 +00:00
|
|
|
license = lib.licenses.isc;
|
2024-01-25 14:12:00 +00:00
|
|
|
maintainers = with lib.maintainers; [ adamcstephens jordanisaacs ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "waylock";
|
2023-08-10 07:59:29 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
2023-08-10 07:59:29 +00:00
|
|
|
})
|