2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub,
|
2021-01-19 06:50:56 +00:00
|
|
|
meson, ninja, pkg-config, scdoc,
|
2020-04-03 11:02:28 +00:00
|
|
|
wayland, wayland-protocols, libxkbcommon,
|
|
|
|
cairo, gdk-pixbuf, pam
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "swaylock-effects";
|
2020-11-08 05:21:09 +00:00
|
|
|
version = "v1.6-2";
|
2020-04-03 11:02:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mortie";
|
|
|
|
repo = "swaylock-effects";
|
|
|
|
rev = version;
|
2020-11-08 05:21:09 +00:00
|
|
|
sha256 = "0fs3c4liajgkax0a2pdc7117v1g9k73nv87g3kyv9wsnkfbbz534";
|
2020-04-03 11:02:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -iE "s/version: '1\.3',/version: '${version}',/" meson.build
|
|
|
|
'';
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc ];
|
2020-04-03 11:02:28 +00:00
|
|
|
buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dpam=enabled" "-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-03 11:02:28 +00:00
|
|
|
description = "Screen locker for Wayland";
|
|
|
|
longDescription = ''
|
2020-07-09 18:20:48 +00:00
|
|
|
Swaylock, with fancy effects
|
2020-04-03 11:02:28 +00:00
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ gnxlxnxx ];
|
|
|
|
};
|
|
|
|
}
|