2023-01-09 14:32:49 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2024-01-15 00:25:15 +00:00
|
|
|
, fetchFromGitea
|
2023-07-10 01:28:39 +00:00
|
|
|
, libxkbcommon
|
|
|
|
, pam
|
2023-01-09 14:32:49 +00:00
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
2023-07-10 01:28:39 +00:00
|
|
|
, wayland
|
2023-01-09 14:32:49 +00:00
|
|
|
, wayland-protocols
|
2023-10-29 23:42:39 +00:00
|
|
|
, zig_0_11
|
2022-11-20 23:03:15 +00:00
|
|
|
}:
|
2023-07-10 01:28:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-11-20 23:03:15 +00:00
|
|
|
pname = "waylock";
|
2024-02-13 14:23:55 +00:00
|
|
|
version = "0.6.5";
|
2022-11-20 23:03:15 +00:00
|
|
|
|
2024-01-15 00:25:15 +00:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
2022-11-20 23:03:15 +00:00
|
|
|
owner = "ifreund";
|
2023-07-10 01:28:39 +00:00
|
|
|
repo = "waylock";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2022-11-20 23:03:15 +00:00
|
|
|
fetchSubmodules = true;
|
2024-02-13 14:23:55 +00:00
|
|
|
hash = "sha256-wvZrRPZobDh+rB3RSaRrz0xDHuYwT2eoQEu3AbYKn8Y=";
|
2022-11-20 23:03:15 +00:00
|
|
|
};
|
|
|
|
|
2023-07-10 01:28:39 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
scdoc
|
|
|
|
wayland
|
2023-10-29 23:42:39 +00:00
|
|
|
zig_0_11.hook
|
2023-07-10 01:28:39 +00:00
|
|
|
];
|
2022-11-20 23:03:15 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wayland-protocols
|
|
|
|
libxkbcommon
|
|
|
|
pam
|
|
|
|
];
|
|
|
|
|
2023-07-10 01:28:39 +00:00
|
|
|
zigBuildFlags = [ "-Dman-pages" ];
|
2022-11-20 23:03:15 +00:00
|
|
|
|
2024-02-13 14:23:55 +00:00
|
|
|
passthru.updateScript = ./update.nu;
|
|
|
|
|
2023-07-10 01:28:39 +00:00
|
|
|
meta = {
|
2024-02-13 14:23:55 +00:00
|
|
|
homepage = "https://codeberg.org/ifreund/waylock";
|
|
|
|
changelog = "https://codeberg.org/ifreund/waylock/releases/tag/v${finalAttrs.version}";
|
2022-11-20 23:03:15 +00:00
|
|
|
description = "A small screenlocker for Wayland compositors";
|
2023-07-10 01:28:39 +00:00
|
|
|
license = lib.licenses.isc;
|
2024-01-15 00:25:29 +00:00
|
|
|
maintainers = with lib.maintainers; [ adamcstephens jordanisaacs ];
|
2023-09-02 19:23:23 +00:00
|
|
|
mainProgram = "waylock";
|
2023-07-10 01:28:39 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2022-11-20 23:03:15 +00:00
|
|
|
};
|
2023-07-10 01:28:39 +00:00
|
|
|
})
|