Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 cmake,
6 pkg-config,
7 wrapQtAppsHook,
8 wayland-scanner,
9 qtbase,
10 wayland,
11 wayland-protocols,
12 wlr-protocols,
13 pixman,
14 libgbm,
15 vulkan-loader,
16 libinput,
17 xorg,
18 seatd,
19 wlroots,
20}:
21
22stdenv.mkDerivation (finalAttrs: {
23 pname = "qwlroots";
24 version = "0.5.3";
25
26 src = fetchFromGitHub {
27 owner = "vioken";
28 repo = "qwlroots";
29 rev = finalAttrs.version;
30 hash = "sha256-ZyG0JGUlz/ubtwN5wYtC8qeYsPur+0kTkD7iIjHX7KU=";
31 };
32
33 nativeBuildInputs = [
34 cmake
35 pkg-config
36 wayland-scanner
37 ];
38
39 buildInputs = [
40 qtbase
41 wayland
42 wayland-protocols
43 wlr-protocols
44 pixman
45 libgbm
46 vulkan-loader
47 libinput
48 xorg.libXdmcp
49 xorg.xcbutilerrors
50 seatd
51 ];
52
53 propagatedBuildInputs = [
54 wlroots
55 ];
56
57 cmakeFlags = [
58 (lib.cmakeBool "PREFER_QT_5" (lib.versionOlder qtbase.version "6"))
59 ];
60
61 dontWrapQtApps = true;
62
63 meta = {
64 description = "Qt and QML bindings for wlroots";
65 homepage = "https://github.com/vioken/qwlroots";
66 license = with lib.licenses; [
67 gpl3Only
68 lgpl3Only
69 asl20
70 ];
71 platforms = wlroots.meta.platforms;
72 maintainers = with lib.maintainers; [ rewine ];
73 };
74})