diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2022-02-27 12:54:30 +0100 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2022-03-25 15:02:32 +0100 |
commit | 100ae90d517dd243d16b89edf16805bf5d8ad874 (patch) | |
tree | a6bb750b0bd2b08a913baa77b87d87439b839f07 /pkgs/development | |
parent | 0222931643ea81af4d48d1fb4b2c91e2d73e7b07 (diff) | |
download | nixpkgs-100ae90d517dd243d16b89edf16805bf5d8ad874.tar nixpkgs-100ae90d517dd243d16b89edf16805bf5d8ad874.tar.gz nixpkgs-100ae90d517dd243d16b89edf16805bf5d8ad874.tar.bz2 nixpkgs-100ae90d517dd243d16b89edf16805bf5d8ad874.tar.lz nixpkgs-100ae90d517dd243d16b89edf16805bf5d8ad874.tar.xz nixpkgs-100ae90d517dd243d16b89edf16805bf5d8ad874.tar.zst nixpkgs-100ae90d517dd243d16b89edf16805bf5d8ad874.zip |
tree-wide: Modernize moving gi-docgen-built docs to devdoc output
Since DevHelp 41, it no longer needs to be stored in `share/devhelp`.
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/gdk-pixbuf/default.nix | 9 | ||||
-rw-r--r-- | pkgs/development/libraries/gtk/4.x.nix | 10 | ||||
-rw-r--r-- | pkgs/development/libraries/pango/default.nix | 9 |
3 files changed, 11 insertions, 17 deletions
diff --git a/pkgs/development/libraries/gdk-pixbuf/default.nix b/pkgs/development/libraries/gdk-pixbuf/default.nix index 3182a4b3998..74f0c7c09c7 100644 --- a/pkgs/development/libraries/gdk-pixbuf/default.nix +++ b/pkgs/development/libraries/gdk-pixbuf/default.nix @@ -111,10 +111,6 @@ stdenv.mkDerivation rec { '' + lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) '' # We need to install 'loaders.cache' in lib/gdk-pixbuf-2.0/2.10.0/ $dev/bin/gdk-pixbuf-query-loaders --update-cache - '' + lib.optionalString withGtkDoc '' - # So that devhelp can find this. - mkdir -p "$devdoc/share/devhelp" - mv "$out/share/doc" "$devdoc/share/devhelp/books" ''; # The fixDarwinDylibNames hook doesn't patch binaries. @@ -124,6 +120,11 @@ stdenv.mkDerivation rec { done ''; + postFixup = lib.optionalString withGtkDoc '' + # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. + moveToOutput "share/doc" "$devdoc" + ''; + # The tests take an excessive amount of time (> 1.5 hours) and memory (> 6 GB). inherit doCheck; diff --git a/pkgs/development/libraries/gtk/4.x.nix b/pkgs/development/libraries/gtk/4.x.nix index 6da3fc769ea..1f61793de5b 100644 --- a/pkgs/development/libraries/gtk/4.x.nix +++ b/pkgs/development/libraries/gtk/4.x.nix @@ -202,13 +202,6 @@ stdenv.mkDerivation rec { for f in $dev/bin/gtk4-encode-symbolic-svg; do wrapProgram $f --prefix XDG_DATA_DIRS : "${shared-mime-info}/share" done - - '' + lib.optionalString x11Support '' - # So that DevHelp can find this. - # TODO: Remove this with DevHelp 41. - mkdir -p "$devdoc/share/devhelp/books" - mv "$out/share/doc/"* "$devdoc/share/devhelp/books" - rmdir -p --ignore-fail-on-non-empty "$out/share/doc" ''; # Wrap demos @@ -219,6 +212,9 @@ stdenv.mkDerivation rec { wrapProgram $dev/bin/$program \ --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share/gsettings-schemas/${pname}-${version}" done + '' + lib.optionalString x11Support '' + # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. + moveToOutput "share/doc" "$devdoc" ''; passthru = { diff --git a/pkgs/development/libraries/pango/default.nix b/pkgs/development/libraries/pango/default.nix index 3033b7df4e3..0e6e1d33ba3 100644 --- a/pkgs/development/libraries/pango/default.nix +++ b/pkgs/development/libraries/pango/default.nix @@ -84,12 +84,9 @@ stdenv.mkDerivation rec { doCheck = false; # test-font: FAIL - postInstall = lib.optionalString withDocs '' - # So that devhelp can find this. - # https://gitlab.gnome.org/GNOME/pango/merge_requests/293/diffs#note_1058448 - mkdir -p "$devdoc/share/devhelp" - mv "$out/share/doc/pango/reference" "$devdoc/share/devhelp/books" - rmdir -p --ignore-fail-on-non-empty "$out/share/doc/pango" + postFixup = lib.optionalString withDocs '' + # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. + moveToOutput "share/doc" "$devdoc" ''; passthru = { |