summaryrefslogtreecommitdiff
path: root/docs/default.nix
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-10-22 18:43:17 +0000
committerAylur <[email protected]>2024-10-23 01:31:01 +0200
commit9a6c776f8fb145a602bcfe9046955d0d2f268416 (patch)
treee716c94d76cd69d84a983a0b45bb4b8e3df6f85a /docs/default.nix
parente220873b5a9c124b742b221c209334045e2b783c (diff)
docs: notifd doc comments
Diffstat (limited to 'docs/default.nix')
-rw-r--r--docs/default.nix12
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