docsets.gtk: dont ship, since the rtfm dependency doesnt cross-compile

This commit is contained in:
2024-11-07 02:17:30 +00:00
parent 2e2fd53c33
commit 815f3d64e4
2 changed files with 5 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ in {
];
sane.programs.docsets.config.pkgs = with pkgs; [
# packages which ship docsets natively:
docsets.gtk
# docsets.gtk
docsets.nix-builtins
docsets.nixpkgs-lib
docsets.python3-std

View File

@@ -4,8 +4,10 @@
}:
# rtfm docset viewer actually ships Crystal and Gtk docsets (the latter of which includes several deps like Gdk, Pango, etc),
# so just extract those.
# N.B.: `rtfm` depends on `webkitgtk_6_0` -- costly! TODO: may be possible to set `buildTargets = [ "docsets" ]` to avoid the gui deps.
# TODO: rtfm's docsets don't include Info.plist: is that a problem?
# N.B.: `rtfm` depends on `webkitgtk_6_0` -- costly!
# TODO: may be possible to set `buildTargets = [ "docsets" ]` to avoid the gui deps.
# or just build the gtk docset more directly, since i'll want to build similar things like glib in the future too.
# N.B.: rtfm's docsets don't include Info.plist, but doesn't _seem_ to be a problem?
runCommandLocal "gtk.docset" { } ''
mkdir -p $out/share/docsets
cp -R ${rtfm}/share/rtfm/docsets/Gtk.docset $out/share/docsets/gtk.docset