From 6164ca0b39384cf853a451de3644ee623e14ab28 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Mon, 10 Aug 2020 16:44:08 +0200 Subject: [PATCH] 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. --- .../libraries/gtk-layer-shell/default.nix | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/gtk-layer-shell/default.nix b/pkgs/development/libraries/gtk-layer-shell/default.nix index 892e1392a4b..14f822432ee 100644 --- a/pkgs/development/libraries/gtk-layer-shell/default.nix +++ b/pkgs/development/libraries/gtk-layer-shell/default.nix @@ -2,7 +2,10 @@ , fetchFromGitHub , meson , ninja -, pkgconfig +, pkg-config +, gtk-doc +, docbook-xsl-nons +, docbook_xml_dtd_43 , wayland , gtk3 , gobject-introspection @@ -12,6 +15,8 @@ stdenv.mkDerivation rec { pname = "gtk-layer-shell"; version = "0.2.0"; + outputs = [ "out" "dev" "devdoc" ]; + src = fetchFromGitHub { owner = "wmww"; repo = "gtk-layer-shell"; @@ -20,15 +25,22 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ - meson ninja pkgconfig + meson + ninja + pkg-config + gobject-introspection + gtk-doc + docbook-xsl-nons + docbook_xml_dtd_43 ]; buildInputs = [ - wayland gtk3 gobject-introspection + wayland + gtk3 ]; mesonFlags = [ - "-Dout=${placeholder "out"}" + "-Ddocs=true" ]; meta = with stdenv.lib; {