nixpkgs/pkgs/applications/window-managers/sway/lock-effects.nix

51 lines
1016 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, scdoc
, wayland
, wayland-protocols
, libxkbcommon
, cairo
, gdk-pixbuf
, pam
2020-04-03 11:02:28 +00:00
}:
stdenv.mkDerivation rec {
pname = "swaylock-effects";
version = "1.6-3";
2020-04-03 11:02:28 +00:00
src = fetchFromGitHub {
owner = "mortie";
repo = "swaylock-effects";
rev = "v${version}";
sha256 = "sha256-71IX0fC4xCPP6pK63KtvDMb3KoP1rw/Iz3S7BgiLSpg=";
2020-04-03 11:02:28 +00:00
};
postPatch = ''
sed -iE "s/version: '1\.3',/version: '${version}',/" meson.build
'';
nativeBuildInputs = [ meson ninja pkg-config scdoc ];
2020-04-03 11:02:28 +00:00
buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam ];
mesonFlags = [
"-Dpam=enabled"
"-Dgdk-pixbuf=enabled"
"-Dman-pages=enabled"
2020-04-03 11:02:28 +00:00
];
meta = with lib; {
2020-04-03 11:02:28 +00:00
description = "Screen locker for Wayland";
longDescription = ''
2020-07-09 18:20:48 +00:00
Swaylock, with fancy effects
2020-04-03 11:02:28 +00:00
'';
inherit (src.meta) homepage;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ gnxlxnxx ];
};
}