e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
48 lines
893 B
Nix
48 lines
893 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, libxkbcommon
|
|
, pam
|
|
, pkg-config
|
|
, scdoc
|
|
, wayland
|
|
, wayland-protocols
|
|
, zig_0_11
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "waylock";
|
|
version = "0.6.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ifreund";
|
|
repo = "waylock";
|
|
rev = "v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-RSAUSlsBB9IphvdSiFqJIvyhhJoAKKb+KyGhdoTa3vs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
scdoc
|
|
wayland
|
|
zig_0_11.hook
|
|
];
|
|
|
|
buildInputs = [
|
|
wayland-protocols
|
|
libxkbcommon
|
|
pam
|
|
];
|
|
|
|
zigBuildFlags = [ "-Dman-pages" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ifreund/waylock";
|
|
description = "A small screenlocker for Wayland compositors";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ jordanisaacs ];
|
|
mainProgram = "waylock";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|