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
73 lines
1.4 KiB
Nix
73 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
callPackage,
|
|
fetchFromGitea,
|
|
libxkbcommon,
|
|
pam,
|
|
pkg-config,
|
|
scdoc,
|
|
wayland,
|
|
wayland-scanner,
|
|
wayland-protocols,
|
|
zig_0_15,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "waylock";
|
|
version = "1.5.0";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "ifreund";
|
|
repo = "waylock";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-TSCE6HSGUkXh76epNuJ+AuG/ZCgR0O8EWRDxz9YDuq8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace build.zig --replace-fail "1.4.0-dev" "${finalAttrs.version}"
|
|
'';
|
|
|
|
deps = callPackage ./build.zig.zon.nix { };
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
scdoc
|
|
wayland-scanner
|
|
zig_0_15.hook
|
|
];
|
|
|
|
buildInputs = [
|
|
wayland
|
|
wayland-protocols
|
|
libxkbcommon
|
|
pam
|
|
];
|
|
|
|
zigBuildFlags = [
|
|
"-Dman-pages"
|
|
"--system"
|
|
"${finalAttrs.deps}"
|
|
];
|
|
|
|
preBuild = ''
|
|
substituteInPlace pam.d/waylock --replace-fail "system-auth" "login"
|
|
'';
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = {
|
|
homepage = "https://codeberg.org/ifreund/waylock";
|
|
changelog = "https://codeberg.org/ifreund/waylock/releases/tag/v${finalAttrs.version}";
|
|
description = "Small screenlocker for Wayland compositors";
|
|
license = lib.licenses.isc;
|
|
maintainers = with lib.maintainers; [
|
|
adamcstephens
|
|
jordanisaacs
|
|
];
|
|
mainProgram = "waylock";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|