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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Normal View History

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