3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/window-managers/sway/lock.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch
2021-07-03 09:57:02 +01:00
, meson, ninja, pkg-config, scdoc, wayland-scanner
2019-05-22 12:03:39 +01:00
, wayland, wayland-protocols, libxkbcommon, cairo, gdk-pixbuf, pam
2019-01-15 12:28:44 +00:00
}:
stdenv.mkDerivation rec {
pname = "swaylock";
2022-03-08 03:50:10 +00:00
version = "1.6";
2019-01-15 12:28:44 +00:00
src = fetchFromGitHub {
owner = "swaywm";
repo = "swaylock";
rev = version;
2022-03-08 03:50:10 +00:00
sha256 = "sha256-VVGgidmSQWKxZNx9Cd6z52apxpxVfmX3Ut/G9kzfDcY=";
2019-01-15 12:28:44 +00:00
};
patches = [
# remove once when updating to 1.7
# https://github.com/swaywm/swaylock/pull/235
(fetchpatch {
url = "https://github.com/swaywm/swaylock/commit/5a1e6ad79aa7d79b32d36cda39400f3e889b8f8f.diff";
sha256 = "sha256-ZcZVImUzvng7sluC6q2B5UL8sVunLe4PIfc+tyw48RQ=";
})
];
strictDeps = true;
depsBuildBuild = [ pkg-config ];
2021-07-03 09:57:02 +01:00
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
2019-05-22 12:03:39 +01:00
buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam ];
2019-01-15 12:28:44 +00:00
2019-05-03 21:05:07 +01:00
mesonFlags = [
2019-02-05 22:29:36 +00:00
"-Dpam=enabled" "-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
];
2019-01-15 12:28:44 +00:00
meta = with lib; {
2019-01-15 12:28:44 +00:00
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.
2019-01-15 12:28:44 +00:00
'';
inherit (src.meta) homepage;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos ];
};
}