 ;; -*- no-byte-compile: t; -*-
 ;;; lang/org/packages.el
 
-(package! org-mode
+(package! org
   :recipe (:host github
-           ;; Install cutting-edge version of org-mode, and from a mirror,
-           ;; because code.orgmode.org runs on a potato.
-           :repo "emacs-straight/org-mode"
-           :files ("*.el" "lisp/*.el" "contrib/lisp/*.el" "contrib/scripts")
+           ;; Install cutting-edge version of org, and from a mirror because
+           ;; code.orgmode.org's uptime is worse than Github's, and
+           ;; emacs-straight/org is smaller and, therefore, quicker to download.
+           :repo "emacs-straight/org"
+           :files (:defaults "etc")
            ;; HACK A necessary hack because org requires a compilation step
            ;;      after being cloned, and during that compilation a
            ;;      org-version.el is generated with these two functions, which
-           ;;      return the output of a 'git describe ...'  call in the repo's
+           ;;      return the output of a 'git describe ...' call in the repo's
            ;;      root. Of course, this command won't work in a sparse clone,
-           ;;      and more than that, initiating these compilation step is a
-           ;;      hassle, so...
+           ;;      and initiating these compilation step is a hassle, so...
+           :build t
            :pre-build
-           (with-temp-file (doom-path (straight--repos-dir "org-mode") "org-version.el")
-             (insert "(fset 'org-release (lambda () \"9.5\"))\n"
-                     "(fset 'org-git-version #'ignore)\n"
-                     "(provide 'org-version)\n"))
-           ;; Prevents built-in Org from sneaking into the byte-compilation of
-           ;; `org-plus-contrib', and inform other packages that `org-mode'
-           ;; satisfies the `org' dependency: raxod502/straight.el#352
-           :includes (org org-plus-contrib))
-  :pin "7a62a4d3251a512069aa06b0082529d61d22de26")
+           (with-temp-file "org-version.el"
+             (insert "(defun org-release () \"9.5\")\n"
+                     (format "(defun org-git-version (&rest _) \"9.5-%s\")\n"
+                             (cdr (doom-call-process "git" "rev-parse" "--short" "HEAD")))
+                     "(provide 'org-version)\n")))
+  :pin "b83ae593473810354504f0f182bfba4537d3c284")
+(package! org-contrib
+  :recipe (:host nil :repo "https://git.sr.ht/~bzg/org-contrib")
+  :pin "fc81309cf6756607a836f93049a9393c2967c4e0")
 
 (package! avy)
 (package! htmlize :pin "49205105898ba8993b5253beec55d8bddd820a70")
 (package! org-yt
   :recipe (:host github :repo "TobiasZawada/org-yt")
   :pin "40cc1ac76d741055cbefa13860d9f070a7ade001")
-(package! ox-clip :pin "2095537695135c7f1bc19db043925eb7d482907b")
-(package! toc-org :pin "c4c61c5a382f94a3a4537e254243006dec2dcca4")
+(package! ox-clip :pin "05a14d56bbffe569d86f20b49ae31ed2ac7d1101")
+(package! toc-org :pin "df4ad6ff15e3b02f6322305638a441a636b9b37e")
 (package! org-cliplink :pin "13e0940b65d22bec34e2de4bc8cba1412a7abfbc")
 
 (when (featurep! :editor evil +everywhere)

(when (featurep! +hugo)
  (package! ox-hugo
    :recipe (:host github :repo "kaushalmodi/ox-hugo" :nonrecursive t)
    :pin "02140a294a8d0d15ca42a1956af794fd7ec18140"))
(when (featurep! :lang rst)
  (package! ox-rst :pin "99fa790da55b57a3f2e9aa187493ba434a64250e"))

(when (featurep! :lang hy)
  (package! ob-hy :pin "a42ecaf440adc03e279afe43ee5ef6093ddd542a"))
(when (featurep! :lang nim)
  (package! ob-nim :pin "6fd060a3ecd38be37e4ec2261cd65760a3c35a91"))
(when (featurep! :lang racket)
  (package! ob-racket
    :recipe (:host github :repo "DEADB17/ob-racket")
