at master 1.2 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 wayland-scanner, 8 wrapQtAppsHook, 9 qtbase, 10 qtdeclarative, 11 qwlroots, 12 wayland, 13 wayland-protocols, 14 wlr-protocols, 15 pixman, 16 libdrm, 17 libinput, 18}: 19 20stdenv.mkDerivation (finalAttrs: { 21 pname = "waylib"; 22 version = "0.6.14"; 23 24 src = fetchFromGitHub { 25 owner = "vioken"; 26 repo = "waylib"; 27 rev = finalAttrs.version; 28 hash = "sha256-Yp7j1L+b41pmLWhxYN4M9W8OjXA31za3Ufp/iE3U/vM="; 29 }; 30 31 depsBuildBuild = [ 32 # To find wayland-scanner 33 pkg-config 34 ]; 35 36 nativeBuildInputs = [ 37 cmake 38 pkg-config 39 wayland-scanner 40 ]; 41 42 buildInputs = [ 43 qtbase 44 qtdeclarative 45 qwlroots 46 wayland 47 wayland-protocols 48 wlr-protocols 49 pixman 50 libdrm 51 libinput 52 ]; 53 54 strictDeps = true; 55 56 dontWrapQtApps = true; 57 58 outputs = [ 59 "out" 60 "dev" 61 ]; 62 63 meta = { 64 description = "Wrapper for wlroots based on Qt"; 65 homepage = "https://github.com/vioken/waylib"; 66 license = with lib.licenses; [ 67 gpl3Only 68 lgpl3Only 69 asl20 70 ]; 71 platforms = lib.platforms.linux; 72 maintainers = with lib.maintainers; [ wineee ]; 73 }; 74})