forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / libraries / waylib / default.nix
blobd3ae7273fae8c8e5284a2483fa08aea74fc72c5e
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , cmake
5 , pkg-config
6 , wayland-scanner
7 , wrapQtAppsHook
8 , qtbase
9 , qtdeclarative
10 , qwlroots
11 , wayland
12 , wayland-protocols
13 , wlr-protocols
14 , pixman
15 , libdrm
16 , libinput
19 stdenv.mkDerivation (finalAttrs: {
20   pname = "waylib";
21   version = "0.3.0-alpha";
23   src = fetchFromGitHub {
24     owner = "vioken";
25     repo = "waylib";
26     rev = finalAttrs.version;
27     hash = "sha256-5IWe8VFpLwDSja4to/ugVS80s5+bcAbM6/fg1HPP52Q=";
28   };
30   depsBuildBuild = [
31     # To find wayland-scanner
32     pkg-config
33   ];
35   nativeBuildInputs = [
36     cmake
37     pkg-config
38     wayland-scanner
39   ];
41   buildInputs = [
42     qtbase
43     qtdeclarative
44     qwlroots
45     wayland
46     wayland-protocols
47     wlr-protocols
48     pixman
49     libdrm
50     libinput
51   ];
53   strictDeps = true;
55   dontWrapQtApps = true;
57   outputs = [ "out" "dev" ];
59   meta = {
60     description = "Wrapper for wlroots based on Qt";
61     homepage = "https://github.com/vioken/waylib";
62     license = with lib.licenses; [ gpl3Only lgpl3Only asl20 ];
63     platforms = lib.platforms.linux;
64     maintainers = with lib.maintainers; [ rewine ];
65   };