guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

74/81: gnu: Add zig-doctest.


From: guix-commits
Subject: 74/81: gnu: Add zig-doctest.
Date: Thu, 5 Dec 2024 01:33:33 -0500 (EST)

hako pushed a commit to branch wip-zig-bootstrap
in repository guix.

commit 11b0ff54968a272b214698ff0d2a6fec4c85f32f
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Sat Nov 30 13:42:02 2024 +0800

    gnu: Add zig-doctest.
    
    * gnu/packages/zig-xyz.scm (zig-doctest): New variable.
    
    Change-Id: Id182de6b0abff3099cb4847532f42ef8a7727541
---
 gnu/packages/zig-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm
index 945aaeae73..fb6e1a2697 100644
--- a/gnu/packages/zig-xyz.scm
+++ b/gnu/packages/zig-xyz.scm
@@ -178,6 +178,34 @@ mission-critical safety and performance for financial 
services.")
       (home-page "https://github.com/ziglibs/diffz";)
       (license license:expat))))
 
+(define-public zig-doctest
+  (let ((commit "725a93787cb1e24e2a183971d52f4ea12d9e1757")
+        (revision "0"))
+    (package
+      (name "zig-doctest")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/kristoff-it/zig-doctest";)
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "05xk4vz5lzv3660phlyhnpd7g8j49zlv3hfsa8bl0flj3mvmhvzc"))))
+      (build-system zig-build-system)
+      (arguments
+       (list #:install-source? #f
+             ;; No test suite.
+             #:tests? #f
+             #:zig-release-type "safe"))
+      (synopsis "Tool for testing Zig code snippets")
+      (description
+       "@command{doctest} is a code rendering tool being able to provide
+syntax highlighting and run code snippets to ensure they behave as expected.")
+      (home-page "https://github.com/kristoff-it/zig-doctest";)
+      (license license:expat))))
+
 (define-public zig-known-folders
   (let ((commit "1cceeb70e77dec941a4178160ff6c8d05a74de6f")
         (revision "0"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]