gnu: gtk-doc: Add 'gtk-doc/stable' variant.
authorMark H Weaver <mhw@netris.org>
Sat, 27 Mar 2021 11:29:25 +0000 (07:29 -0400)
committerMark H Weaver <mhw@netris.org>
Sat, 27 Mar 2021 23:48:46 +0000 (19:48 -0400)
* gnu/packages/gtk.scm (gtk-doc/stable): New variable.

gnu/packages/gtk.scm

index cf91162..52710b4 100644 (file)
@@ -48,6 +48,7 @@
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix git-download)
+  #:use-module ((guix build utils) #:select (alist-replace))
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system meson)
@@ -1829,6 +1830,17 @@ typically used to document the public API of GTK+ and GNOME libraries, but it
 can also be used to document application code.")
     (license license:gpl2+)))
 
+;; This is a variant of the 'gtk-doc' package that is not updated often.  It
+;; is intended to be used as a native-input at build-time only.  This allows
+;; the main 'gtk-doc', 'dblatex' and 'imagemagick' packages to be freely
+;; updated on the 'master' branch without triggering an excessive number of
+;; rebuilds.
+(define-public gtk-doc/stable
+  (hidden-package
+   (package/inherit gtk-doc
+     (inputs (alist-replace "dblatex" `(,dblatex/stable)
+                            (package-inputs gtk-doc))))))
+
 (define-public gtk-engines
   (package
     (name "gtk-engines")