diff options
Diffstat (limited to 'docs/default.nix')
-rw-r--r-- | docs/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/default.nix b/docs/default.nix index 5a85fc3..1f67db8 100644 --- a/docs/default.nix +++ b/docs/default.nix @@ -7,6 +7,10 @@ toTOML = (pkgs.formats.toml {}).generate; + docgen = pkgs.gi-docgen.overrideAttrs { + patches = [../nix/doc/gi-docgen.patch]; + }; + genLib = { flakepkg, gir, @@ -16,6 +20,8 @@ authors ? "Aylur", dependencies ? {}, out ? "libastal/${flakepkg}", + browse ? flakepkg, + website ? flakepkg, }: let name = "Astal${gir}-${api-ver}"; src = self.packages.${pkgs.system}.${flakepkg}.dev; @@ -25,9 +31,9 @@ inherit description authors; version = readVer version; license = "LGPL-2.1"; - browse_url = "https://github.com/aylur/astal"; + browse_url = "https://github.com/Aylur/astal/tree/main/lib/${browse}"; repository_url = "https://github.com/aylur/aylur.git"; - website_url = "https://aylur.github.io/astal"; + website_url = "https://aylur.github.io/astal/guide/libraries/${website}"; dependencies = ["GObject-2.0"] ++ (builtins.attrNames dependencies); }; @@ -90,7 +96,7 @@ in src = ./.; nativeBuildInputs = with pkgs; [ - gi-docgen + docgen glib json-glib gobject-introspection |