2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
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-08-10 07:59:29 +00:00
|
|
|
, zig_0_10
|
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";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "0.6.2";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
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;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-jl4jSDWvJB6OfBbVXfVQ7gv/aDkN6bBy+/yK+AQDQL0=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
scdoc
|
|
|
|
wayland
|
|
|
|
zig_0_10.hook
|
|
|
|
];
|
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;
|
|
|
|
maintainers = with lib.maintainers; [ 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
|
|
|
})
|