From 3e4af2cc3299b0971b2e513eeb2d0dcae1aa3bec Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Thu, 3 Feb 2022 23:36:39 +0000 Subject: [PATCH] nongnu: wasm: Extract wasm32-wasi-clang hash from clang-13. * nongnu/packages/wasm.scm (wasm32-wasi-clang): Extract base clang hash directly from (gnu packages clang-13). Signed-off-by: Jonathan Brielmaier --- nongnu/packages/wasm.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nongnu/packages/wasm.scm b/nongnu/packages/wasm.scm index 85db3bb..6aa8211 100644 --- a/nongnu/packages/wasm.scm +++ b/nongnu/packages/wasm.scm @@ -17,6 +17,7 @@ ;;; along with GNU Guix. If not, see . (define-module (nongnu packages wasm) + #:use-module (guix base32) #:use-module (guix gexp) #:use-module (guix packages) #:use-module ((guix licenses) #:prefix license:) @@ -119,7 +120,9 @@ other APIs.") (define-public wasm32-wasi-clang (let ((base (clang-from-llvm llvm-13 wasm32-wasi-clang-runtime - "0zp1p6syii5iajm8v2c207s80arv00yz5ckfwimn5dng0sxiqqax"))) + (bytevector->nix-base32-string + (content-hash-value + (origin-hash (package-source clang-13))))))) (package (inherit base) (name "wasm32-wasi-clang") (inputs