1{ lib, stdenv
2, fetchFromGitHub
3, meson
4, ninja
5, pkg-config
6, gtk-doc
7, docbook-xsl-nons
8, docbook_xml_dtd_43
9, wayland
10, gtk3
11, gobject-introspection
12}:
13
14stdenv.mkDerivation rec {
15 pname = "gtk-layer-shell";
16 version = "0.7.0";
17
18 outputs = [ "out" "dev" "devdoc" ];
19 outputBin = "devdoc"; # for demo
20
21 src = fetchFromGitHub {
22 owner = "wmww";
23 repo = "gtk-layer-shell";
24 rev = "v${version}";
25 sha256 = "sha256-0S1WBpxXpWoMOecJQS6FKEXRZdw4E5hrjURPyhkxiMc=";
26 };
27
28 nativeBuildInputs = [
29 meson
30 ninja
31 pkg-config
32 gobject-introspection
33 gtk-doc
34 docbook-xsl-nons
35 docbook_xml_dtd_43
36 ];
37
38 buildInputs = [
39 wayland
40 gtk3
41 ];
42
43 mesonFlags = [
44 "-Ddocs=true"
45 "-Dexamples=true"
46 ];
47
48 meta = with lib; {
49 description = "A library to create panels and other desktop components for Wayland using the Layer Shell protocol";
50 license = licenses.lgpl3Plus;
51 maintainers = with maintainers; [ eonpatapon ];
52 platforms = platforms.unix;
53 };
54}