c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitea
|
|
, libxkbcommon
|
|
, pam
|
|
, pkg-config
|
|
, scdoc
|
|
, wayland
|
|
, wayland-protocols
|
|
, zig_0_11
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "waylock";
|
|
version = "0.6.5";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "ifreund";
|
|
repo = "waylock";
|
|
rev = "v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-wvZrRPZobDh+rB3RSaRrz0xDHuYwT2eoQEu3AbYKn8Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
scdoc
|
|
wayland
|
|
zig_0_11.hook
|
|
];
|
|
|
|
buildInputs = [
|
|
wayland-protocols
|
|
libxkbcommon
|
|
pam
|
|
];
|
|
|
|
zigBuildFlags = [ "-Dman-pages" ];
|
|
|
|
passthru.updateScript = ./update.nu;
|
|
|
|
meta = {
|
|
homepage = "https://codeberg.org/ifreund/waylock";
|
|
changelog = "https://codeberg.org/ifreund/waylock/releases/tag/v${finalAttrs.version}";
|
|
description = "A small screenlocker for Wayland compositors";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [ adamcstephens jordanisaacs ];
|
|
mainProgram = "waylock";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|