Subject: [PATCH 5/6] gnu: Add arrayfire-docs.

From: Adam Faiz <[email-masked]>
Date: Sun, 27 Aug 2023 02:55:03 +0800

>From 73a6d3371cf1020a2d270b0c67187711d09be9c4 Mon Sep 17 00:00:00 2001
Message-ID: <7[email-masked]>
In-Reply-To: <[email-masked]>
References: <[email-masked]>
From: AwesomeAdam54321 <[email-masked]>
Date: Sun, 27 Aug 2023 02:10:07 +0800
Subject: [PATCH 5/6] gnu: Add arrayfire-docs.

* gnu/packages/machine-learning.scm (arrayfire-docs): New variable.
---
 gnu/packages/machine-learning.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index c32180615b..6251ea9206 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -45,6 +45,7 @@ (define-module (gnu packages machine-learning)
   #:use-module (guix download)
   #:use-module (guix svn-download)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system ocaml)
   #:use-module (guix build-system pyproject)
@@ -3101,6 +3102,32 @@ (define-public tensorflow-lite
 devices.")
     (license license:asl2.0)))
 
+(define-public arrayfire-docs
+  (let ((commit "cd08d749611b324012555ad6f23fd76c5465bd6c")
+        (revision "0"))
+  (package
+    (name "arrayfire-docs")
+    (version (package-version arrayfire))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/arrayfire/assets")
+             (commit commit)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0s1il38y65z19mcrhvqvkm5ljv6v55ilw1bxwcsmhgzmzjla32xz"))))
+    (build-system copy-build-system)
+    (arguments
+     (list
+      #:install-plan
+      #~'(("./" "./"))))
+    (synopsis "ArrayFire documentation")
+    (description
+     "This package contains the files used for ArrayFire's documentation.")
+    (home-page "https://arrayfire.com/")
+    (license license:cc0))))
+
 (define-public dmlc-core
   (package
     (name "dmlc-core")
-- 
2.41.0