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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
meson,
ninja,
cmake,
systemd,
glib,
gtk4,
libdrm,
libepoxy,
libxkbcommon,
libvncserver,
neatvnc,
aml,
pixman,
zlib,
ffmpeg,
nix-update-script,
withNeatVNC ? true,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "reframe";
version = "1.21.0";
src = fetchFromGitHub {
owner = "AlynxZhou";
repo = "reframe";
tag = "v${finalAttrs.version}";
hash = "sha256-xp1KIxkvWBuP6nCtS/BtuIaVXuGchnupREw50VbrDBE=";
fetchSubmodules = true;
};
nativeBuildInputs = [
meson
ninja
cmake
pkg-config
];
buildInputs = [
systemd
glib
gtk4
libdrm
libepoxy
libxkbcommon
libvncserver
]
++ lib.optionals withNeatVNC [
neatvnc
aml
pixman
zlib
ffmpeg
];
passthru = {
updateScript = nix-update-script { };
};
mesonFlags = [
(lib.mesonOption "systemunitdir" "${placeholder "out"}/lib/systemd/system")
(lib.mesonOption "sysusersdir" "${placeholder "out"}/lib/sysusers.d")
(lib.mesonOption "tmpfilesdir" "${placeholder "out"}/lib/tmpfiles.d")
]
++ lib.optionals withNeatVNC [ (lib.mesonOption "neatvnc" "true") ];
postPatch = ''
chmod +x meson_post_install.sh
patchShebangs meson_post_install.sh
# Comment out all commands, all systemd reloading
sed -i '1,2! s/^/# /' meson_post_install.sh
'';
strictDeps = true;
__structuredAttrs = true;
meta = {
homepage = "https://reframe.alynx.one/";
description = "DRM/KMS based remote desktop for Linux that supports Wayland/NVIDIA/headless/login…";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
bitbloxhub
];
platforms = lib.platforms.linux;
};
})
|