From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GDQBISysUGDZXQAA0tVLHw (envelope-from ) for ; Tue, 16 Mar 2021 13:01:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SH3NHCysUGAQIQAA1q6Kng (envelope-from ) for ; Tue, 16 Mar 2021 13:01:32 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B49601967F for ; Tue, 16 Mar 2021 14:01:31 +0100 (CET) Received: from localhost ([::1]:48576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lM9KE-0001kO-Tb for larch@yhetil.org; Tue, 16 Mar 2021 09:01:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lM9Hr-0000Ab-JX for guix-patches@gnu.org; Tue, 16 Mar 2021 08:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55137) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lM9Hr-0001WK-C3 for guix-patches@gnu.org; Tue, 16 Mar 2021 08:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lM9Hr-0005pp-Br for guix-patches@gnu.org; Tue, 16 Mar 2021 08:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47006] [PATCH] gnu: Add zig. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Mar 2021 12:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47006 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Prikler Cc: 47006@debbugs.gnu.org Received: via spool by 47006-submit@debbugs.gnu.org id=B47006.161589950022331 (code B ref 47006); Tue, 16 Mar 2021 12:59:03 +0000 Received: (at 47006) by debbugs.gnu.org; 16 Mar 2021 12:58:20 +0000 Received: from localhost ([127.0.0.1]:38441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lM9H9-0005o7-Tf for submit@debbugs.gnu.org; Tue, 16 Mar 2021 08:58:20 -0400 Received: from flashner.co.il ([178.62.234.194]:54462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lM9H7-0005nu-6j for 47006@debbugs.gnu.org; Tue, 16 Mar 2021 08:58:18 -0400 Received: from localhost (unknown [31.210.181.184]) by flashner.co.il (Postfix) with ESMTPSA id 55B2340160; Tue, 16 Mar 2021 12:58:10 +0000 (UTC) Date: Tue, 16 Mar 2021 14:57:32 +0200 From: Efraim Flashner Message-ID: References: <20210308131155.7441-1-leo.prikler@student.tugraz.at> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZClCR6dXkjsIUozD" Content-Disposition: inline In-Reply-To: <20210308131155.7441-1-leo.prikler@student.tugraz.at> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615899692; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=cB7qNOMWX70u3bavbTbbtytEtDw+CxhTC2QoKd18kSo=; b=Z64hsV4DRC9YhDuIh22CrseKr1rLbR4dFeT4alijjwvkfI9sDDh0vZp1nlPINz6al0Mv5g 1g8IVZHYM3fGsEHV7Q5jvNiwglJ2BJxEfkMKfgvzka7ooOt/c8HJi2NwwMZtIGFdXLxZd9 aud+9ye9uqzBAGc8E74RiGGoKOy4xtvJENEUKadc3eJGZIkonxVgSOCsF4IqMSWTxeEjNT l1Fy1W1DvzYvOwWaF609VXJCIjKTJdh5xfqF5K522yXMMcz9WN0UQz1oRN3PosyOgYOJWZ 4q+P4SVMiRXsD3tLLX6JXCVP2oFVCtafxOmhA0Uvz9pdEuERhfozVWdrNp/47w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615899692; a=rsa-sha256; cv=none; b=NBBgmYj+ySsccev5Wb0SK4F/zRZpltu5Mnd9VkL1St7E8y4dRMS+h+rndDMDK7uNy0ZiHk IoFdQoToGTT6EDIp+HvwGtAqwvedseqo3LA5GoEg916gD7r9htJTsuLO5r7/3SzYiJlPlA qdaKo59u+DvXn7GCUhtGkQcW0tG4j8B5ex4K15DkfkjUlYA8CvCMdQmxiugm53z0YX1gfa djDMhhFUaze7HkN7vbzvIYQFWFqCBnnoQ0rsi8grkFVlxuYhl3sQlJMzPN+uKLV7u5rJ2A BaKxbKSlAZDFmp9B0I72HqlQb9XY4xJ5XQVJdKdTArXkl9lmTkGqOnc6LWXbgw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: B49601967F X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: E+jSUhLWPTPM --ZClCR6dXkjsIUozD Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 08, 2021 at 02:11:56PM +0100, Leo Prikler wrote: > * gnu/packages/zig.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add it here. > --- > gnu/local.mk | 1 + > gnu/packages/zig.scm | 65 ++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 66 insertions(+) > create mode 100644 gnu/packages/zig.scm >=20 > diff --git a/gnu/local.mk b/gnu/local.mk > index fb3b395852..abcf86fb7e 100644 > --- a/gnu/local.mk > +++ b/gnu/local.mk > @@ -586,6 +586,7 @@ GNU_SYSTEM_MODULES =3D \ > %D%/packages/xdisorg.scm \ > %D%/packages/xorg.scm \ > %D%/packages/xfce.scm \ > + %D%/packages/zig.scm \ > %D%/packages/zile.scm \ > %D%/packages/zwave.scm \ > \ > diff --git a/gnu/packages/zig.scm b/gnu/packages/zig.scm > new file mode 100644 > index 0000000000..caf0a5e21a > --- /dev/null > +++ b/gnu/packages/zig.scm > @@ -0,0 +1,65 @@ > +;;; GNU Guix --- Functional package management for GNU > +;;; Copyright =C2=A9 2021 Leo Prikler > +;;; > +;;; This file is part of GNU Guix. > +;;; > +;;; GNU Guix is free software; you can redistribute it and/or modify it > +;;; under the terms of the GNU General Public License as published by > +;;; the Free Software Foundation; either version 3 of the License, or (at > +;;; your option) any later version. > +;;; > +;;; GNU Guix is distributed in the hope that it will be useful, but > +;;; WITHOUT ANY WARRANTY; without even the implied warranty of > +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > +;;; GNU General Public License for more details. > +;;; > +;;; You should have received a copy of the GNU General Public License > +;;; along with GNU Guix. If not, see . > + > +(define-module (gnu packages zig) > + #:use-module (guix packages) > + #:use-module (guix git-download) > + #:use-module ((guix licenses) #:prefix license:) > + #:use-module (guix build-system cmake) > + #:use-module (gnu packages) > + #:use-module (gnu packages llvm)) > + > +(define-public zig > + (package > + (name "zig") > + (version "0.7.1") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/ziglang/zig.git") > + (commit version))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "1z6c4ym9jmga46cw2arn7zv2drcpmrf3vw139gscxp27n7q2z5md"))= )) > + (build-system cmake-build-system) > + (native-inputs > + `(("clang" ,clang-11) > + ("lld" ,lld) > + ("llvm" ,llvm-11))) Does it work to replace these three with clang-toolchain-11? > + (arguments > + `(#:tests? #f ; no check target > + #:phases > + (modify-phases %standard-phases > + (add-after 'configure 'set-home > + (lambda _ > + (setenv "HOME" (getcwd)) ; zig writes to $HOME/.cache > + #t))))) > + (synopsis "General purpose programming language and toolchain") > + (description "Zig is a general-purpose programming language and > +toolchain. Among other features it provides > +@itemize > +@item an Optional type instead of null pointers, > +@item manual memory management, > +@item generic data structures and functions, > +@item compile-time reflection and compile-time code execution, > +@item integration with C using zig as a C compiler, and > +@item concurrency via async functions. > +@end itemize") > + (home-page "https://github.com/ziglang/zig") > + (license license:expat))) > --=20 > 2.30.1 >=20 >=20 >=20 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --ZClCR6dXkjsIUozD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmBQqzkACgkQQarn3Mo9 g1HX/w/+OZZFFTqSTVwvL4drj2bu1MYz/cXmE7WXMUn5XJdw+hMZour+DfHk8zrm kd64lVazm5/mOvpLtw778y4LV/9XNjEO/ix3q4Hh3vtVMcxY0qXQTNIRg1WpXNnm RjGGHv/ELBUft/27EkWvzcHxcNQSRD784RWhBbRhRTFp4xiktv0tQpuuIYJR23k0 Gi5F2ybYduuZridPe/Xl6JB9A2kB/uCoCp5qNPAiVNfXRQAbtcQ5zrBMq85F9YZh 0V/nY1cubvDrB6sDwQBLyO97frzUIydVw1IlZgGksBjQ7XEeRt1bbMlddyT6DLWm ywNMn1lN6U11xMyzDs8MWXsllcC+EN06+f8lWZskbRHQF9EFnDUhA7cph6WTOZht W325w/yloo0u5CtZNig6uDUTGy3ZOwBsapMAxq03YCQO326zNthKzWWuxEAD8rdT aCX3Kvfl70KJmDdwcJLtxOxipLMZ9TzxIjfUJgcf9X3pVeyypIXgHe1Zt4KHfj1+ oRyt+2Aw+Sc9IPJXk81sbB1gcQs1z2ty79zZdGGfpnNL0ngP43COHbbYrG1NMarQ o6qPHSPVLgIuAOrSfC8hibxsHEGAmTWiBuRVCeYec2BjRHif0xDCJMKWHG1pLyHt NV/IUHifg4kBC0WxquTdYuP06qTpX7brYT/+CW7uGzjNygpcY5U= =gXVo -----END PGP SIGNATURE----- --ZClCR6dXkjsIUozD--