Merge pull request #240726 from jtojnar/gusb-docs
gusb: Re-introduce API docs
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user