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
|
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, wayland-scanner
, wrapQtAppsHook
, qtbase
, qtquick3d
, qwlroots
, wayland
, wayland-protocols
, wlr-protocols
, pixman
, libdrm
, nixos-artwork
}:
stdenv.mkDerivation (finalAttrs: {
pname = "waylib";
version = "0.1.1";
src = fetchFromGitHub {
owner = "vioken";
repo = "waylib";
rev = finalAttrs.version;
hash = "sha256-3IdrChuXQyQGhJ/7kTqmkV0PyuSNP53Y0Po01Fc9Qi0=";
};
patches = [
(fetchpatch {
name = "fix-build-on-qt-6_7.patch";
url = "https://github.com/vioken/waylib/commit/09875ebedb074089ec57e71cbc8d8011f555be70.patch";
hash = "sha256-ulXlLxn7TOlXSl4N5mjXCy3PJhxVeyDwbwKeV9J/FSI=";
})
];
postPatch = ''
substituteInPlace examples/tinywl/OutputDelegate.qml \
--replace "/usr/share/wallpapers/deepin/desktop.jpg" \
"${nixos-artwork.wallpapers.simple-blue}/share/backgrounds/nixos/nix-wallpaper-simple-blue.png"
'';
nativeBuildInputs = [
cmake
pkg-config
wayland-scanner
wrapQtAppsHook
];
buildInputs = [
qtbase
qtquick3d
wayland
wayland-protocols
wlr-protocols
pixman
libdrm
];
propagatedBuildInputs = [
qwlroots
];
cmakeFlags = [
(lib.cmakeBool "INSTALL_TINYWL" true)
];
strictDeps = true;
outputs = [ "out" "dev" "bin" ];
meta = {
description = "A wrapper for wlroots based on Qt";
homepage = "https://github.com/vioken/waylib";
license = with lib.licenses; [ gpl3Only lgpl3Only asl20 ];
outputsToInstall = [ "out" ];
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ rewine ];
};
})
|