nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 meson,
6 ninja,
7 pkg-config,
8 gtk-doc,
9 docbook-xsl-nons,
10 docbook_xml_dtd_43,
11 wayland-scanner,
12 wayland,
13 gtk3,
14 gobject-introspection,
15 vala,
16}:
17
18stdenv.mkDerivation (finalAttrs: {
19 pname = "gtk-layer-shell";
20 version = "0.9.2";
21
22 outputs = [
23 "out"
24 "dev"
25 "devdoc"
26 ];
27 outputBin = "devdoc"; # for demo
28
29 src = fetchFromGitHub {
30 owner = "wmww";
31 repo = "gtk-layer-shell";
32 rev = "v${finalAttrs.version}";
33 hash = "sha256-+vJouQEauTe/dp2WdOJcc2Byv1+Hb0iaUgwBPnV9g48=";
34 };
35
36 strictDeps = true;
37
38 depsBuildBuild = [
39 pkg-config
40 ];
41
42 nativeBuildInputs = [
43 meson
44 ninja
45 pkg-config
46 gobject-introspection
47 gtk-doc
48 docbook-xsl-nons
49 docbook_xml_dtd_43
50 wayland-scanner
51 vala
52 wayland-scanner
53 ];
54
55 buildInputs = [
56 wayland
57 gtk3
58 ];
59
60 mesonFlags = [
61 "-Ddocs=true"
62 "-Dexamples=true"
63 ];
64
65 meta = with lib; {
66 description = "Library to create panels and other desktop components for Wayland using the Layer Shell protocol";
67 mainProgram = "gtk-layer-demo";
68 homepage = "https://github.com/wmww/gtk-layer-shell";
69 license = licenses.lgpl3Plus;
70 maintainers = with maintainers; [
71 eonpatapon
72 donovanglover
73 ];
74 platforms = platforms.linux;
75 };
76})