92f5c75e80
* swaylock-effects: 1.6-2 -> 1.6-3 * Apply suggestions from code review Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: Yurii Matsiuk <ymatsiuk@users.noreply.github.com> Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
51 lines
1016 B
Nix
51 lines
1016 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, scdoc
|
|
, wayland
|
|
, wayland-protocols
|
|
, libxkbcommon
|
|
, cairo
|
|
, gdk-pixbuf
|
|
, pam
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "swaylock-effects";
|
|
version = "1.6-3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mortie";
|
|
repo = "swaylock-effects";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-71IX0fC4xCPP6pK63KtvDMb3KoP1rw/Iz3S7BgiLSpg=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -iE "s/version: '1\.3',/version: '${version}',/" meson.build
|
|
'';
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc ];
|
|
buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam ];
|
|
|
|
mesonFlags = [
|
|
"-Dpam=enabled"
|
|
"-Dgdk-pixbuf=enabled"
|
|
"-Dman-pages=enabled"
|
|
];
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|