blob: df693b2e0fed02e1c4ee553aead5debda1d2c1dd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{ stdenv, fetchgit
, pkgconfig, meson, ninja, scdoc
, wayland, wayland-protocols
, libxkbcommon, gtk3
}:
let
metadata = import ./metadata.nix;
in
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "wlogout";
version = metadata.rev;
src = fetchgit {
url = metadata.repo_git;
rev = metadata.rev;
sha256 = metadata.sha256;
};
nativeBuildInputs = [ pkgconfig meson ninja scdoc ];
buildInputs = [
wayland wayland-protocols
libxkbcommon gtk3
];
patchPhase = ''
substituteInPlace style.css --replace \
"/usr/share/wlogout" \
"$out/share/${pname}"
# Fix path in `access(/etc/wlogout/$config_file$)`
substituteInPlace main.c --replace \
"/etc/wlogout" \
"$out/etc/${pname}"
'';
mesonFlags = [
"--datadir=${placeholder "out"}/share"
"--sysconfdir=${placeholder "out"}/etc"
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A wayland based logout menu";
homepage = "https://github.com/ArtsyMacaw/wlogout";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [];
};
}
|