emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#45547: closed ([PATCH] gnu: Add wyhash.)


From: GNU bug Tracking System
Subject: bug#45547: closed ([PATCH] gnu: Add wyhash.)
Date: Wed, 30 Dec 2020 23:42:02 +0000

Your message dated Wed, 30 Dec 2020 18:41:46 -0500
with message-id <X+0QOtbPilRIvg1P@jasmine.lan>
and subject line Re: [bug#45547] [PATCH] gnu: zrythm: Update to 
1.0.0-alpha.6.0.1.
has caused the debbugs.gnu.org bug report #45547,
regarding [PATCH] gnu: Add wyhash.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
45547: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45547
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add wyhash. Date: Wed, 30 Dec 2020 04:12:32 +0000
* gnu/packages/datastructures.scm (wyhash): New variable.
---
 gnu/packages/datastructures.scm | 34 ++++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/datastructures.scm b/gnu/packages/datastructures.scm
index 2911a0c550..49e363d09e 100644
--- a/gnu/packages/datastructures.scm
+++ b/gnu/packages/datastructures.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2020 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
+;;; Copyright © 2020 Ryan Prior <rprior@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -33,7 +34,38 @@
   #:use-module (guix git-download)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
-  #:use-module (guix build-system meson))
+  #:use-module (guix build-system meson)
+  #:use-module (guix build-system trivial))
+
+(define-public wyhash
+  (package
+    (name "wyhash")
+    (version "5")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/wangyi-fudan/wyhash";)
+                    (commit (string-append "wyhash_v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32 
"03ljs5iw9zrm3bydwggjvpwrcwmsd75h3dv1j4am4hw3h22cjdjc"))))
+    (build-system trivial-build-system) ;; source-only package
+    (arguments
+     '(#:modules ((guix build utils))
+       #:builder
+       (begin
+         (use-modules (guix build utils))
+         (let ((dest (string-append (assoc-ref %outputs "out") "/include")))
+           (mkdir-p dest)
+           (chdir (assoc-ref %build-inputs "source"))
+           (install-file "wyhash.h" dest))
+         #t)))
+    (home-page "https://github.com/wangyi-fudan/wyhash";)
+    (synopsis "Embeddable hash function and random number generator.")
+    (description "This package provides a portable hash function and random
+number generator suitable for use in data structures.  Provided by default in
+Zig, V, and Nim programming language standard libraries.")
+    (license license:unlicense)))
 
 (define-public gdsl
   (package
-- 
2.29.2





--- End Message ---
--- Begin Message --- Subject: Re: [bug#45547] [PATCH] gnu: zrythm: Update to 1.0.0-alpha.6.0.1. Date: Wed, 30 Dec 2020 18:41:46 -0500
On Wed, Dec 30, 2020 at 04:12:52AM +0000, Ryan Prior via Guix-patches via wrote:
> * gnu/packages/music.scm (zrythm): Update to 1.0.0-alpha.6.0.1.

Thanks! Pushed as 0492cc2f5078d78d2adfaa1c2cd38dff964b579d


--- End Message ---

reply via email to

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