2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
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.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ifreund";
|
|
repo = "waylock";
|
|
rev = "v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-Q1FlahawsnJ77gP6QVs9AR058rhMU92iueRPudPf+sE=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|