2023-01-09 15:32:49 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-07-10 03:28:39 +02:00
|
|
|
, libxkbcommon
|
|
|
|
, pam
|
2023-01-09 15:32:49 +01:00
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
2023-07-10 03:28:39 +02:00
|
|
|
, wayland
|
2023-01-09 15:32:49 +01:00
|
|
|
, wayland-protocols
|
2023-10-30 00:42:39 +01:00
|
|
|
, zig_0_11
|
2022-11-21 00:03:15 +01:00
|
|
|
}:
|
2023-07-10 03:28:39 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-11-21 00:03:15 +01:00
|
|
|
pname = "waylock";
|
2023-10-30 00:42:39 +01:00
|
|
|
version = "0.6.3";
|
2022-11-21 00:03:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ifreund";
|
2023-07-10 03:28:39 +02:00
|
|
|
repo = "waylock";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2022-11-21 00:03:15 +01:00
|
|
|
fetchSubmodules = true;
|
2023-10-30 00:42:39 +01:00
|
|
|
hash = "sha256-Q1FlahawsnJ77gP6QVs9AR058rhMU92iueRPudPf+sE=";
|
2022-11-21 00:03:15 +01:00
|
|
|
};
|
|
|
|
|
2023-07-10 03:28:39 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
scdoc
|
|
|
|
wayland
|
2023-10-30 00:42:39 +01:00
|
|
|
zig_0_11.hook
|
2023-07-10 03:28:39 +02:00
|
|
|
];
|
2022-11-21 00:03:15 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wayland-protocols
|
|
|
|
libxkbcommon
|
|
|
|
pam
|
|
|
|
];
|
|
|
|
|
2023-07-10 03:28:39 +02:00
|
|
|
zigBuildFlags = [ "-Dman-pages" ];
|
2022-11-21 00:03:15 +01:00
|
|
|
|
2023-07-10 03:28:39 +02:00
|
|
|
meta = {
|
2022-11-21 00:03:15 +01:00
|
|
|
homepage = "https://github.com/ifreund/waylock";
|
|
|
|
description = "A small screenlocker for Wayland compositors";
|
2023-07-10 03:28:39 +02:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = with lib.maintainers; [ jordanisaacs ];
|
2023-09-02 21:23:23 +02:00
|
|
|
mainProgram = "waylock";
|
2023-07-10 03:28:39 +02:00
|
|
|
platforms = lib.platforms.linux;
|
2022-11-21 00:03:15 +01:00
|
|
|
};
|
2023-07-10 03:28:39 +02:00
|
|
|
})
|