gtk-layer-shell: clean up

* Use `pkg-config` instead of the alias.
* `gobject-introspection` is used during build for GIR generation, move it to `nativeBuildInputs`.
* Remove unused `out` meson flag.
* Enable docs.
* Split to multiple outputs.
This commit is contained in:
Jan Tojnar 2020-08-10 16:44:08 +02:00
parent 7474d17169
commit 6164ca0b39
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -2,7 +2,10 @@
, fetchFromGitHub , fetchFromGitHub
, meson , meson
, ninja , ninja
, pkgconfig , pkg-config
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
, wayland , wayland
, gtk3 , gtk3
, gobject-introspection , gobject-introspection
@ -12,6 +15,8 @@ stdenv.mkDerivation rec {
pname = "gtk-layer-shell"; pname = "gtk-layer-shell";
version = "0.2.0"; version = "0.2.0";
outputs = [ "out" "dev" "devdoc" ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "wmww"; owner = "wmww";
repo = "gtk-layer-shell"; repo = "gtk-layer-shell";
@ -20,15 +25,22 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
meson ninja pkgconfig meson
ninja
pkg-config
gobject-introspection
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
]; ];
buildInputs = [ buildInputs = [
wayland gtk3 gobject-introspection wayland
gtk3
]; ];
mesonFlags = [ mesonFlags = [
"-Dout=${placeholder "out"}" "-Ddocs=true"
]; ];
meta = with stdenv.lib; { meta = with stdenv.lib; {