nixpkgs/pkgs/applications/window-managers/sway/lock-effects.nix
2020-07-09 20:20:48 +02:00

40 lines
998 B
Nix

{ stdenv, fetchFromGitHub,
meson, ninja, pkgconfig, scdoc,
wayland, wayland-protocols, libxkbcommon,
cairo, gdk-pixbuf, pam
}:
stdenv.mkDerivation rec {
pname = "swaylock-effects";
version = "v1.6-1";
src = fetchFromGitHub {
owner = "mortie";
repo = "swaylock-effects";
rev = version;
sha256 = "044fc4makjx8v29fkx5xlil6vr1v4r0k6c8741pl67gzvlm4cx3i";
};
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 = ''
Swaylock, with fancy effects
'';
inherit (src.meta) homepage;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ gnxlxnxx ];
};
}