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
72 lines
1.3 KiB
Nix
72 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
scdoc,
|
|
wayland-scanner,
|
|
wayland,
|
|
wayland-protocols,
|
|
libxkbcommon,
|
|
cairo,
|
|
gdk-pixbuf,
|
|
pam,
|
|
wrapGAppsNoGuiHook,
|
|
librsvg,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "swaylock";
|
|
version = "1.8.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "swaywm";
|
|
repo = "swaylock";
|
|
tag = "v${version}";
|
|
hash = "sha256-5JAA8mCY3vOsauvRK2zquBrzA2ROakEfahzp4a6j/Ac=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
depsBuildBuild = [ pkg-config ];
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
scdoc
|
|
wayland-scanner
|
|
wrapGAppsNoGuiHook
|
|
gdk-pixbuf
|
|
];
|
|
buildInputs = [
|
|
wayland
|
|
wayland-protocols
|
|
libxkbcommon
|
|
cairo
|
|
gdk-pixbuf
|
|
pam
|
|
librsvg
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dpam=enabled"
|
|
"-Dgdk-pixbuf=enabled"
|
|
"-Dman-pages=enabled"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Screen locker for Wayland";
|
|
longDescription = ''
|
|
swaylock is a screen locking utility for Wayland compositors.
|
|
Important note: If you don't use the Sway module (programs.sway.enable)
|
|
you need to set "security.pam.services.swaylock = {};" manually.
|
|
'';
|
|
inherit (src.meta) homepage;
|
|
mainProgram = "swaylock";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ wineee ];
|
|
};
|
|
}
|