wlogout: init at 1.1.1
This commit is contained in:
parent
7d7036b5e7
commit
973473e249
54
pkgs/tools/wayland/wlogout/default.nix
Normal file
54
pkgs/tools/wayland/wlogout/default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, meson
|
||||
, ninja
|
||||
, scdoc
|
||||
, gtk3
|
||||
, libxkbcommon
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wlogout";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ArtsyMacaw";
|
||||
repo = "wlogout";
|
||||
rev = version;
|
||||
sha256 = "cTscfx+erHVFHwwYpN7pADQWt5sq75sQSyXSP/H8kOs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config meson ninja scdoc ];
|
||||
buildInputs = [
|
||||
gtk3
|
||||
libxkbcommon
|
||||
wayland
|
||||
wayland-protocols
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace style.css \
|
||||
--replace "/usr/share/wlogout" "$out/share/${pname}"
|
||||
|
||||
substituteInPlace main.c \
|
||||
--replace "/etc/wlogout" "$out/etc/${pname}"
|
||||
'';
|
||||
|
||||
mesonFlags = [
|
||||
"--datadir=${placeholder "out"}/share"
|
||||
"--sysconfdir=${placeholder "out"}/etc"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ArtsyMacaw/wlogout";
|
||||
description = "A wayland based logout menu";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
# TODO: shell completions
|
@ -1976,6 +1976,8 @@ in
|
||||
|
||||
wl-clipboard = callPackage ../tools/wayland/wl-clipboard { };
|
||||
|
||||
wlogout = callPackage ../tools/wayland/wlogout { };
|
||||
|
||||
wlr-randr = callPackage ../tools/wayland/wlr-randr { };
|
||||
|
||||
wlsunset = callPackage ../tools/wayland/wlsunset { };
|
||||
|
Loading…
Reference in New Issue
Block a user