2021-04-22 02:08:21 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2022-05-18 14:49:53 +00:00
|
|
|
, wayland-scanner
|
2021-04-22 02:08:21 +00:00
|
|
|
, libxkbcommon
|
|
|
|
, cairo
|
|
|
|
, gdk-pixbuf
|
|
|
|
, pam
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "swaylock-effects";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "unstable-2021-10-21";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mortie";
|
|
|
|
repo = "swaylock-effects";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "a8fc557b86e70f2f7a30ca9ff9b3124f89e7f204";
|
|
|
|
sha256 = "sha256-GN+cxzC11Dk1nN9wVWIyv+rCrg4yaHnCePRYS1c4JTk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -iE "s/version: '1\.3',/version: '${version}',/" meson.build
|
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2021-04-22 02:08:21 +00:00
|
|
|
"-Dpam=enabled"
|
|
|
|
"-Dgdk-pixbuf=enabled"
|
|
|
|
"-Dman-pages=enabled"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Screen locker for Wayland";
|
|
|
|
longDescription = ''
|
2020-07-18 16:06:22 +00:00
|
|
|
Swaylock, with fancy effects
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2022-05-18 14:49:53 +00:00
|
|
|
maintainers = with maintainers; [ gnxlxnxx ma27 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|