Subject: bug#45547: closed (Re: [bug#45547] [PATCH] gnu: zrythm: Update to 1.0.0-alpha.6.0.1.)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 30 Dec 2020 23:42:03 +0000

Your bug report

#45547: [PATCH] gnu: Add wyhash.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
45547: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45547
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#45547] [PATCH] gnu: zrythm: Update to 1.0.0-alpha.6.0.1.
From: Leo Famulari <[email-masked]>
To: Ryan Prior via Guix-patches via <[email-masked]>
Cc: [email-masked]
Date: Wed, 30 Dec 2020 18:41:46 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

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

Subject: [PATCH] gnu: Add wyhash.
From: Ryan Prior <[email-masked]>
To: [email-masked]
Date: Wed, 30 Dec 2020 04:12:32 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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 <[email-masked]>
 ;;; Copyright © 2020 Mark H Weaver <[email-masked]>
 ;;; Copyright © 2020 Marius Bakke <[email-masked]>
+;;; Copyright © 2020 Ryan Prior <[email-masked]>
 ;;;
 ;;; 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