2021-04-19 20:09:33 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2022-05-08 21:56:15 +01:00
|
|
|
, wayland-scanner
|
2021-04-19 20:09:33 +01:00
|
|
|
, libxkbcommon
|
|
|
|
, cairo
|
|
|
|
, gdk-pixbuf
|
|
|
|
, pam
|
2020-04-03 12:02:28 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "swaylock-effects";
|
2023-12-03 10:09:28 +00:00
|
|
|
version = "1.7.0.0";
|
2020-04-03 12:02:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-07-01 22:18:16 +01:00
|
|
|
owner = "jirutka";
|
2020-04-03 12:02:28 +01:00
|
|
|
repo = "swaylock-effects";
|
2022-07-01 22:18:16 +01:00
|
|
|
rev = "v${version}";
|
2023-12-03 10:09:28 +00:00
|
|
|
sha256 = "sha256-cuFM+cbUmGfI1EZu7zOsQUj4rA4Uc4nUXcvIfttf9zE=";
|
2020-04-03 12:02:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -iE "s/version: '1\.3',/version: '${version}',/" meson.build
|
|
|
|
'';
|
|
|
|
|
2022-05-08 21:56:15 +01:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner];
|
2020-04-03 12:02:28 +01:00
|
|
|
buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2021-04-19 20:09:33 +01:00
|
|
|
"-Dpam=enabled"
|
|
|
|
"-Dgdk-pixbuf=enabled"
|
|
|
|
"-Dman-pages=enabled"
|
2020-04-03 12:02:28 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-03 12:02:28 +01:00
|
|
|
description = "Screen locker for Wayland";
|
|
|
|
longDescription = ''
|
2020-07-09 19:20:48 +01:00
|
|
|
Swaylock, with fancy effects
|
2020-04-03 12:02:28 +01:00
|
|
|
'';
|
2022-09-04 03:04:35 +01:00
|
|
|
mainProgram = "swaylock";
|
2020-04-03 12:02:28 +01:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2023-01-15 17:52:27 +00:00
|
|
|
maintainers = with maintainers; [ gnxlxnxx ];
|
2020-04-03 12:02:28 +01:00
|
|
|
};
|
|
|
|
}
|