From cdc986c996d388a1688debd29d51140118a62859 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Fri, 30 Jun 2023 15:25:53 +0200 Subject: [PATCH] gusb: Re-introduce API docs They were removed in 25ed414b2be0e7b9a5adbacc07a198653a72b019. --- pkgs/development/libraries/gusb/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/gusb/default.nix b/pkgs/development/libraries/gusb/default.nix index 2b625d43cffc..9ffc49e5588a 100644 --- a/pkgs/development/libraries/gusb/default.nix +++ b/pkgs/development/libraries/gusb/default.nix @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { pname = "gusb"; version = "0.4.6"; - outputs = [ "bin" "out" "dev" ]; + outputs = [ "bin" "out" "dev" "devdoc" ]; src = fetchFromGitHub { owner = "hughsie"; @@ -43,6 +43,10 @@ stdenv.mkDerivation rec { strictDeps = true; + depsBuildBuild = [ + pkg-config + ]; + nativeBuildInputs = [ meson ninja @@ -70,6 +74,12 @@ stdenv.mkDerivation rec { doCheck = false; # tests try to access USB + postFixup = '' + # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. + ls -la "$out/share/doc" + moveToOutput "share/doc" "$devdoc" + ''; + meta = with lib; { description = "GLib libusb wrapper"; homepage = "https://github.com/hughsie/libgusb";