Files
nixpkgs/pkgs/by-name/wl/wlock/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitea,
libxcrypt,
pkg-config,
wayland,
wayland-protocols,
libxkbcommon,
wayland-scanner,
}:
stdenv.mkDerivation {
pname = "wlock";
version = "0-unstable-2024-09-13";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "sewn";
repo = "wlock";
rev = "be975445fa0da7252f8e13b610c518dd472652d0";
hash = "sha256-Xt7Q51RhFG+UXYukxfORIhc4Df86nxtpDhAhaSmI38A=";
};
postPatch = ''
substituteInPlace Makefile --replace-fail 'chmod 4755' 'chmod 755'
'';
buildInputs = [
libxcrypt
wayland
wayland-protocols
libxkbcommon
];
strictDeps = true;
makeFlags = [
"PREFIX=$(out)"
("WAYLAND_SCANNER=" + lib.getExe wayland-scanner)
];
nativeBuildInputs = [
pkg-config
wayland-scanner
];
meta = {
description = "Sessionlocker for Wayland compositors that support the ext-session-lock-v1 protocol";
license = lib.licenses.gpl3;
homepage = "https://codeberg.org/sewn/wlock";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ fliegendewurst ];
mainProgram = "wlock";
};
}