mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
9538bee9b7
enables transparency via wlogout -p layer-shell
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, meson
|
|
, ninja
|
|
, scdoc
|
|
, gtk3
|
|
, libxkbcommon
|
|
, wayland
|
|
, wayland-protocols
|
|
, gtk-layer-shell
|
|
}:
|
|
|
|
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
|
|
gtk-layer-shell
|
|
];
|
|
|
|
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
|