2019-01-15 12:28:44 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, meson, ninja, pkgconfig, scdoc
|
2019-02-05 22:29:36 +00:00
|
|
|
, wayland, wayland-protocols, libxkbcommon, cairo, gdk_pixbuf, pam
|
2019-01-15 12:28:44 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "swaylock-${version}";
|
2019-05-03 21:05:07 +01:00
|
|
|
version = "1.4";
|
2019-01-15 12:28:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swaywm";
|
|
|
|
repo = "swaylock";
|
|
|
|
rev = version;
|
2019-05-03 21:05:07 +01:00
|
|
|
sha256 = "1ii9ql1mxkk2z69dv6bg1x22nl3a46iww764wqjiv78x08xpk982";
|
2019-01-15 12:28:44 +00:00
|
|
|
};
|
|
|
|
|
2019-05-03 21:05:07 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -iE "s/version: '1\.3',/version: '${version}',/" meson.build
|
|
|
|
'';
|
|
|
|
|
2019-01-15 12:28:44 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig scdoc ];
|
2019-02-05 22:29:36 +00: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 stdenv.lib; {
|
|
|
|
description = "Screen locker for Wayland";
|
|
|
|
longDescription = ''
|
|
|
|
swaylock is a screen locking utility for Wayland compositors.
|
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|