2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
2020-09-25 04:45:31 +00:00
|
|
|
, pkg-config
|
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_43
|
2023-02-16 17:41:37 +00:00
|
|
|
, wayland-scanner
|
2020-04-24 23:36:52 +00:00
|
|
|
, wayland
|
|
|
|
, gtk3
|
|
|
|
, gobject-introspection
|
2023-02-02 18:25:31 +00:00
|
|
|
, vala
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gtk-layer-shell";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.8.1";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2022-08-21 13:32:41 +00:00
|
|
|
outputBin = "devdoc"; # for demo
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wmww";
|
|
|
|
repo = "gtk-layer-shell";
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
hash = "sha256-WW5sdOAJUKbSLWUpI9BK7O63/Uli+Tu9Tj9ccCOREPM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2020-09-25 04:45:31 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_43
|
2023-02-02 18:25:31 +00:00
|
|
|
vala
|
2023-02-16 17:41:37 +00:00
|
|
|
wayland-scanner
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-09-25 04:45:31 +00:00
|
|
|
wayland
|
|
|
|
gtk3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2020-09-25 04:45:31 +00:00
|
|
|
"-Ddocs=true"
|
2022-08-21 13:32:41 +00:00
|
|
|
"-Dexamples=true"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A library to create panels and other desktop components for Wayland using the Layer Shell protocol";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://github.com/wmww/gtk-layer-shell";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ eonpatapon donovanglover ];
|
2023-02-16 17:41:37 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-08-04 22:07:22 +00:00
|
|
|
})
|