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