From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 30 12:02:48 2022 Received: (at submit) by debbugs.gnu.org; 30 Oct 2022 16:02:48 +0000 Received: from localhost ([127.0.0.1]:38888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opAlr-0000dL-Nm for submit@debbugs.gnu.org; Sun, 30 Oct 2022 12:02:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:48474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opAlp-0000dC-Ua for submit@debbugs.gnu.org; Sun, 30 Oct 2022 12:02:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opAlp-0001hW-GR for guix-patches@gnu.org; Sun, 30 Oct 2022 12:02:45 -0400 Received: from mx1.dismail.de ([78.46.223.134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opAlm-0004Xl-4F for guix-patches@gnu.org; Sun, 30 Oct 2022 12:02:43 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id e8920e92 for ; Sun, 30 Oct 2022 17:02:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=vgTXMRmLLH8sZ1qNwIAXVjv4lgZz19AM6vc3IgOWwwc=; b= np54Ie1hg8QHy0tjOekSGzfHy+WwQWtiUsUA4LOQRMY9ZhKNR9vzRtu3n2M88Vrz aPcNG+T39T8pVvhgO6lygMG1Y50U92pme1bnS4OhQcuiCeiPfuXQQH8ib2iIwWFW 3yer4H2UW5NgvVXOyawGJXAZvtdQ021XgwlmhzC90bdljd1rPM5pbNv2PZm9ThBX VU0GbOq4f/PGP5wJ9YlmzB/vpRNVCbQG8OqIuZDvlk4MKXDa1nEphu7O9R7cO0pN TP+SKsA/2g/zMRdpB8XeigBZ7CKkrha5feEO0+bzcZIcByeJ3FMaOMkrgZwCesJc YUOOtkK+d1TOcZVWw6psLA== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 4147cc31 for ; Sun, 30 Oct 2022 17:02:39 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id d3b1d00d for ; Sun, 30 Oct 2022 17:02:39 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id fa963564 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 30 Oct 2022 17:02:33 +0100 (CET) From: jgart To: guix-patches@gnu.org Subject: [PATCH] gnu: Add carp. Date: Sun, 30 Oct 2022 11:02:24 -0500 Message-Id: <20221030160224.30625-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) * gnu/packages/lisp.scm (carp): New variable. --- gnu/packages/lisp.scm | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 4899943ba8..8957cc49fc 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -55,6 +55,7 @@ (define-module (gnu packages lisp) #:use-module (guix build-system gnu) #:use-module (guix build-system ant) #:use-module (guix build-system asdf) + #:use-module (guix build-system haskell) #:use-module (guix build-system trivial) #:use-module (gnu packages admin) #:use-module (gnu packages base) @@ -71,10 +72,14 @@ (define-module (gnu packages lisp) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages groff) + #:use-module (gnu packages haskell-check) + #:use-module (gnu packages haskell-web) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages libffcall) #:use-module (gnu packages libffi) #:use-module (gnu packages libsigsegv) #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) #:use-module (gnu packages m4) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) @@ -1268,6 +1273,58 @@ (define-public janet assembler, PEG) is less than 1MB.") (license license:expat))) +(define-public carp + (package + (name "carp") + (version "0.5.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/carp-lang/Carp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14jdnv0ljqvpr9ych1plfw7hp5q57a8j1bv8h3v345x06z783d07")))) + (build-system haskell-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Carp looks inside the sources checkout to know where to + ;; find its core libraries and other files. + ;; Carp emits C code and tries to compile it with an external + ;; C compiler. On Linux it defaults to clang. + (add-after 'install 'set-carp-dir-and-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (sources (assoc-ref inputs "source")) + (clang (assoc-ref inputs "clang"))) + (wrap-program (string-append out "/bin/carp") + `("CARP_DIR" = (,sources)) + `("PATH" = (,(string-append clang "/bin")))) + (wrap-program (string-append out "/bin/carp-header-parse") + `("CARP_DIR" = (,sources)) + `("PATH" = (,(string-append clang "/bin")))))))))) + (native-inputs (list ghc-hunit)) + (inputs (list bash-minimal + clang + ghc-blaze-markup + ghc-blaze-html + ghc-split + ghc-ansi-terminal + ghc-cmark + ghc-edit-distance + ghc-hashable + ghc-open-browser + ghc-optparse-applicative)) + (home-page "https://carp-lang.org/") + (synopsis "Statically typed Lisp without a garbage collector") + (description +"@code{carp} is a programming language designed to work well for +interactive and performance sensitive use cases like games, sound +synthesis and visualizations.") + (license license:asl2.0))) + (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 30 12:16:35 2022 Received: (at 58898) by debbugs.gnu.org; 30 Oct 2022 16:16:35 +0000 Received: from localhost ([127.0.0.1]:38895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opAzD-0000xT-AW for submit@debbugs.gnu.org; Sun, 30 Oct 2022 12:16:35 -0400 Received: from mx1.dismail.de ([78.46.223.134]:29641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opAzB-0000xF-3b for 58898@debbugs.gnu.org; Sun, 30 Oct 2022 12:16:34 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id ba74b769 for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:16:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=ubYt+5HzmIz91HbFdozTb6DxwH7uUoJV0UaC3yinNxs=; b= JVCxHFcxvw3R5Hadu1H/BsNJT+8y5v0kqp1vz39uk61/+nahPzTWfTNhB1rUnjTJ Kewgb2kiZLgVuFafLzchgKP08JYwGLAXQWe3bYViYP4gHbnnBRW1X3TUOJ05d2aA X9Kob3C5QHFujb1Y+Wwlb92G0PfiV2AqlL/q5MjKVs+kfAKw9ext1nHRrJJfcNyO D6CkxxA2tYc8szceehtokJ883OMS/CapiOe4/M/fOOppvazWrqJFr4VK7LVc2dzU wXVgpTLZOb1qiSMCg7HeQcHKxUQbCbHOaV5XsKiVOMv5vo1SjqTvXpQUA5OSabW1 PqY6snhvWZFhT9HluqDwaA== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 0c1a1300 for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:16:25 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id eb331764 for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:16:25 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 7ec56bb3 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 30 Oct 2022 17:16:24 +0100 (CET) From: jgart To: 58898@debbugs.gnu.org Subject: [PATCH v2] gnu: Add carp. Date: Sun, 30 Oct 2022 11:15:40 -0500 Message-Id: <20221030161539.31788-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58898 Cc: jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/lisp.scm (carp): New variable. v2 just removes the unused out variable and capitalizes Clang in the comment. all best, jgart --- gnu/packages/lisp.scm | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 4899943ba8..763219fff6 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -55,6 +55,7 @@ (define-module (gnu packages lisp) #:use-module (guix build-system gnu) #:use-module (guix build-system ant) #:use-module (guix build-system asdf) + #:use-module (guix build-system haskell) #:use-module (guix build-system trivial) #:use-module (gnu packages admin) #:use-module (gnu packages base) @@ -71,10 +72,14 @@ (define-module (gnu packages lisp) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages groff) + #:use-module (gnu packages haskell-check) + #:use-module (gnu packages haskell-web) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages libffcall) #:use-module (gnu packages libffi) #:use-module (gnu packages libsigsegv) #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) #:use-module (gnu packages m4) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) @@ -1268,6 +1273,57 @@ (define-public janet assembler, PEG) is less than 1MB.") (license license:expat))) +(define-public carp + (package + (name "carp") + (version "0.5.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/carp-lang/Carp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14jdnv0ljqvpr9ych1plfw7hp5q57a8j1bv8h3v345x06z783d07")))) + (build-system haskell-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Carp looks inside the sources checkout to know where to + ;; find its core libraries and other files. + ;; Carp emits C code and tries to compile it with an external + ;; C compiler. On Linux it defaults to Clang. + (add-after 'install 'set-carp-dir-and-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((sources (assoc-ref inputs "source")) + (clang (assoc-ref inputs "clang"))) + (wrap-program (string-append out "/bin/carp") + `("CARP_DIR" = (,sources)) + `("PATH" = (,(string-append clang "/bin")))) + (wrap-program (string-append out "/bin/carp-header-parse") + `("CARP_DIR" = (,sources)) + `("PATH" = (,(string-append clang "/bin")))))))))) + (native-inputs (list ghc-hunit)) + (inputs (list bash-minimal + clang + ghc-blaze-markup + ghc-blaze-html + ghc-split + ghc-ansi-terminal + ghc-cmark + ghc-edit-distance + ghc-hashable + ghc-open-browser + ghc-optparse-applicative)) + (home-page "https://carp-lang.org/") + (synopsis "Statically typed Lisp without a garbage collector") + (description +"@code{carp} is a programming language designed to work well for +interactive and performance sensitive use cases like games, sound +synthesis and visualizations.") + (license license:asl2.0))) + (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 30 12:23:10 2022 Received: (at 58898) by debbugs.gnu.org; 30 Oct 2022 16:23:10 +0000 Received: from localhost ([127.0.0.1]:38902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opB5a-00017a-CL for submit@debbugs.gnu.org; Sun, 30 Oct 2022 12:23:10 -0400 Received: from mx1.dismail.de ([78.46.223.134]:32997) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opB5X-00017K-ST for 58898@debbugs.gnu.org; Sun, 30 Oct 2022 12:23:08 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id fdb710c4 for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:23:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=nDH5c8GlbxL0IpqRi/QvmByofMIxyXFNzGlURzhGMFI=; b= vUCXn2Y3PltGJJoZ9ZsceR8zkRr3P7QLRGUdQW+6kpLFYbQJoVrEG+Pp2wwZqX9e LxTCPuASPe1WfP0HzQ68tPnioUni6vFE3mTc2p1AFHz/qHrC08WJlSSn9inK5e6d IJfkC4mBtpCPngJvpjpgna+D56HqZBJ7Jvf7E6r4zlCWxbWsbsZaAvt1s96H/bsd Q+RkWn/ntNFBLtdobv1WjYCqc1VvxuHK9mlYiuVoXBW0KyMbv7DtcMxqiIiYGUPs lTB2l9y0vrIPZgVIQ3CSTPkexS3O/pmh5E+ZHi0F2erZlUzk2bxNhDWomGeaX+da oz9TyL5KgWrEV8V/nhXAFg== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 271d4f7f for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:23:01 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 37fbf1d5 for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:23:01 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 7a28a2a8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 30 Oct 2022 17:22:55 +0100 (CET) From: jgart To: 58898@debbugs.gnu.org Subject: [PATCH v3] gnu: Add carp. Date: Sun, 30 Oct 2022 11:22:18 -0500 Message-Id: <20221030162217.32504-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58898 Cc: jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/lisp.scm (carp): New variable. v3: oops silly me out was being used... --- gnu/packages/lisp.scm | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 4899943ba8..763219fff6 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -55,6 +55,7 @@ (define-module (gnu packages lisp) #:use-module (guix build-system gnu) #:use-module (guix build-system ant) #:use-module (guix build-system asdf) + #:use-module (guix build-system haskell) #:use-module (guix build-system trivial) #:use-module (gnu packages admin) #:use-module (gnu packages base) @@ -71,10 +72,14 @@ (define-module (gnu packages lisp) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages groff) + #:use-module (gnu packages haskell-check) + #:use-module (gnu packages haskell-web) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages libffcall) #:use-module (gnu packages libffi) #:use-module (gnu packages libsigsegv) #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) #:use-module (gnu packages m4) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) @@ -1268,6 +1273,57 @@ (define-public janet assembler, PEG) is less than 1MB.") (license license:expat))) +(define-public carp + (package + (name "carp") + (version "0.5.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/carp-lang/Carp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14jdnv0ljqvpr9ych1plfw7hp5q57a8j1bv8h3v345x06z783d07")))) + (build-system haskell-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Carp looks inside the sources checkout to know where to + ;; find its core libraries and other files. + ;; Carp emits C code and tries to compile it with an external + ;; C compiler. On Linux it defaults to Clang. + (add-after 'install 'set-carp-dir-and-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((sources (assoc-ref inputs "source")) + (clang (assoc-ref inputs "clang"))) + (wrap-program (string-append out "/bin/carp") + `("CARP_DIR" = (,sources)) + `("PATH" = (,(string-append clang "/bin")))) + (wrap-program (string-append out "/bin/carp-header-parse") + `("CARP_DIR" = (,sources)) + `("PATH" = (,(string-append clang "/bin")))))))))) + (native-inputs (list ghc-hunit)) + (inputs (list bash-minimal + clang + ghc-blaze-markup + ghc-blaze-html + ghc-split + ghc-ansi-terminal + ghc-cmark + ghc-edit-distance + ghc-hashable + ghc-open-browser + ghc-optparse-applicative)) + (home-page "https://carp-lang.org/") + (synopsis "Statically typed Lisp without a garbage collector") + (description +"@code{carp} is a programming language designed to work well for +interactive and performance sensitive use cases like games, sound +synthesis and visualizations.") + (license license:asl2.0))) + (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 30 12:31:10 2022 Received: (at 58898) by debbugs.gnu.org; 30 Oct 2022 16:31:10 +0000 Received: from localhost ([127.0.0.1]:38908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opBDK-0001Kc-D5 for submit@debbugs.gnu.org; Sun, 30 Oct 2022 12:31:10 -0400 Received: from mx1.dismail.de ([78.46.223.134]:9021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opBDH-0001KA-LT for 58898@debbugs.gnu.org; Sun, 30 Oct 2022 12:31:08 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 922ddc65 for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:31:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=bx57Ag9MXBDC3j8ctHCMo3+YCDfgQLg5hVR4YUBCr48=; b= ngGsWSbW8Nm0ANbHiWStdcEqi+0iIwnIUc3JTTMz776Ka9UHGH7vdpT7A6To4+Y6 59aT1dYbOvQVGNiZNRBrP6YyrC9XHRM+rI8+oSK8EtzbtzD4XKPY1y8Vkf38qJI4 po1KP1IS3bF4Jk7d2Rf043hs4IGs81WdQsG/ZSGweKbBFigzlnY9g7RS4OcGl+h+ 0UNIdmfqJduEzzq15IS2TFj4oY7A/XomSN4knVbjLGJ231IqXtCXI7AwyLlICW4D pVp0BDLN0JFL+R/Y8QJsQE91MMQ5c1qavERmtkRDN7yYrL0zr6w/m1nvA5fl9Ws8 cJMqED0kt/P3xDe9w3OygA== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id aaacc07e for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:31:01 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 33084a0b for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:31:01 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 8eafa0ac (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 30 Oct 2022 17:31:00 +0100 (CET) From: jgart To: 58898@debbugs.gnu.org Subject: [PATCH v4] gnu: Add carp. Date: Sun, 30 Oct 2022 11:30:25 -0500 Message-Id: <20221030163024.2244-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58898 Cc: jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/lisp.scm (carp): New variable. here's v4. v3 fails ;() --- gnu/packages/lisp.scm | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 4899943ba8..c7ba84c771 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -55,6 +55,7 @@ (define-module (gnu packages lisp) #:use-module (guix build-system gnu) #:use-module (guix build-system ant) #:use-module (guix build-system asdf) + #:use-module (guix build-system haskell) #:use-module (guix build-system trivial) #:use-module (gnu packages admin) #:use-module (gnu packages base) @@ -71,10 +72,14 @@ (define-module (gnu packages lisp) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages groff) + #:use-module (gnu packages haskell-check) + #:use-module (gnu packages haskell-web) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages libffcall) #:use-module (gnu packages libffi) #:use-module (gnu packages libsigsegv) #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) #:use-module (gnu packages m4) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) @@ -1268,6 +1273,58 @@ (define-public janet assembler, PEG) is less than 1MB.") (license license:expat))) +(define-public carp + (package + (name "carp") + (version "0.5.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/carp-lang/Carp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "14jdnv0ljqvpr9ych1plfw7hp5q57a8j1bv8h3v345x06z783d07")))) + (build-system haskell-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; Carp looks inside the sources checkout to know where to + ;; find its core libraries and other files. + ;; Carp emits C code and tries to compile it with an external + ;; C compiler. On Linux it defaults to Clang. + (add-after 'install 'set-carp-dir-and-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (sources (assoc-ref inputs "source")) + (clang (assoc-ref inputs "clang"))) + (wrap-program (string-append out "/bin/carp") + `("CARP_DIR" = (,sources)) + `("PATH" = (,(string-append clang "/bin")))) + (wrap-program (string-append out "/bin/carp-header-parse") + `("CARP_DIR" = (,sources)) + `("PATH" = (,(string-append clang "/bin")))))))))) + (native-inputs (list ghc-hunit)) + (inputs (list bash-minimal + clang + ghc-blaze-markup + ghc-blaze-html + ghc-split + ghc-ansi-terminal + ghc-cmark + ghc-edit-distance + ghc-hashable + ghc-open-browser + ghc-optparse-applicative)) + (home-page "https://carp-lang.org/") + (synopsis "Statically typed Lisp without a garbage collector") + (description +"@code{carp} is a programming language designed to work well for +interactive and performance sensitive use cases like games, sound +synthesis and visualizations.") + (license license:asl2.0))) + (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 30 13:20:09 2022 Received: (at submit) by debbugs.gnu.org; 30 Oct 2022 17:20:09 +0000 Received: from localhost ([127.0.0.1]:38959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opByi-0002Zb-N6 for submit@debbugs.gnu.org; Sun, 30 Oct 2022 13:20:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:35994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opByb-0002Yv-CH for submit@debbugs.gnu.org; Sun, 30 Oct 2022 13:20:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opByb-0004Fi-6P for guix-patches@gnu.org; Sun, 30 Oct 2022 13:20:01 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opByX-00072L-RC for guix-patches@gnu.org; Sun, 30 Oct 2022 13:20:00 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 704965C0086; Sun, 30 Oct 2022 13:19:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 30 Oct 2022 13:19:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dustycloud.org; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1667150394; x=1667236794; bh=Mt 7+VBZTRCLsJV4spY7xh+jGuwv3pszDou9GDeXHHaI=; b=M5tKc9OOqzttdhfTQZ taoW+THq5tqsIDNuMkAQu7tb5uzSSv9eMtMjb3L7rcUBrUMtzjGWUtcRkpy17++Z woRKFyWq7WFZ5xs3HlUoaCcqcOWJaJjEmXuzQivxaZKsQ0sAJkGb+dKmpiAOjPda SaS6CD98W3Bh+zG4uD2zisLRZHXCTCRThbNhNcD5j4nUMoYGgb3CZazRN+qIJ+pB OdSyLkQbCy11vSPfjeNXNf/kD8pgteWfE1suJI7+N4GEb6tPeafHy1X61Yj//kVZ 43kU7FyIMV7WzIww3QquzekhaqJnf4b6hqEU6COMnEMpeBJG+TZUQof9G/AY9jts hm9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1667150394; x=1667236794; bh=Mt7+VBZTRCLsJV4spY7xh+jGuwv3 pszDou9GDeXHHaI=; b=ex0yZme8M0QIu5i/Nxyh+VUqwK43T9sfLtjfw5T+4dXo 6o5CpmfanN5YG/YxpTTRvCAUI7FRT+CbhyaUGy/1rE8hvYafajQtbpdgFDuEoKS2 oy49w1hZDAVe7b7WIev/GzeIr5pvSVQmPEabUSIPd7RD/8u1Yfh1ZwwG590ZX3TG CD9BhuwKlgXCSfRf2+ecCHvdjKckniEJFKENhe1OM26MpifJwFZbmSCfluOsj61E qSEtbpUGZ91+J7prqlt1pKLKEVagoD0DcHp5RoW4Ir4RWr56xxm6U3Z0sNC0VOW6 wdOVgbp6qNy7ynDLWPdufAnCwbO3cWd/Rkw+L8ykYw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedruddtgddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvfevufffjgfkgggtsehttd ertddtredtnecuhfhrohhmpeevhhhrihhsthhinhgvucfnvghmmhgvrhdqhggvsggsvghr uceotgifvggssggvrhesughushhthigtlhhouhgurdhorhhgqeenucggtffrrghtthgvrh hnpedtffdvleejgedujeejleetgeduhfduheetfefgheejuefgleejheevieetvdeuhfen ucffohhmrghinhepghhithhhuhgsrdgtohhmpdgtrghrphdqlhgrnhhgrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheptgifvggssggv rhesughushhthigtlhhouhgurdhorhhg X-ME-Proxy: Feedback-ID: i006446df:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 30 Oct 2022 13:19:53 -0400 (EDT) References: <20221030160224.30625-1-jgart@dismail.de> <20221030163024.2244-1-jgart@dismail.de> User-agent: mu4e 1.8.9; emacs 28.2 From: Christine Lemmer-Webber To: jgart Subject: Re: [bug#58898] [PATCH v4] gnu: Add carp. Date: Sun, 30 Oct 2022 13:18:22 -0400 In-reply-to: <20221030163024.2244-1-jgart@dismail.de> Message-ID: <875yg1jkjs.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.25; envelope-from=cwebber@dustycloud.org; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: 58898@debbugs.gnu.org, guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Thanks! It does compile and install. I haven't figured out to how to use it meaningfully though... Here's what happens to me: cwebber@chicory:~/devel/guix$ carp Welcome to Carp 0.5.5 This is free software with ABSOLUTELY NO WARRANTY. Evaluate (help) for more information. > (defn double [x] (* x 2)) (> > (double 2) In file included from out/main.c:20: /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_long.h:90:5: error: implicit declaration of function 'srand' is invalid in C99 [-Werror,-Wimplicit-function-declaration] srand(seed); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_long.h:90:5: note: did you mean 'rand'? /home/cwebber/.guix-profile/include/stdlib.h:52:5: note: 'rand' declared here int rand (void); ^ In file included from out/main.c:21: /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:1:29: error: use of undeclared identifier 'DBL_MAX' const double CARP_DBL_MAX = DBL_MAX; ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:68:12: error: implicitly declaring library function 'acos' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return acos(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:68:12: note: include the header or explicitly provide a declaration for 'acos' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:72:12: error: implicitly declaring library function 'asin' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return asin(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:72:12: note: include the header or explicitly provide a declaration for 'asin' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:76:12: error: implicitly declaring library function 'atan' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return atan(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:76:12: note: include the header or explicitly provide a declaration for 'atan' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:88:12: error: implicitly declaring library function 'cosh' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return cosh(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:88:12: note: include the header or explicitly provide a declaration for 'cosh' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:96:12: error: implicitly declaring library function 'sinh' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return sinh(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:96:12: note: include the header or explicitly provide a declaration for 'sinh' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:100:12: error: implicitly declaring library function 'tanh' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return tanh(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:100:12: note: include the header or explicitly provide a declaration for 'tanh' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:108:12: error: implicitly declaring library function 'frexp' with type 'double (double, int *)' [-Werror,-Wimplicit-function-declaration] return frexp(x, exponent); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:108:12: note: include the header or explicitly provide a declaration for 'frexp' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:120:12: error: implicitly declaring library function 'log10' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return log10(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:120:12: note: include the header or explicitly provide a declaration for 'log10' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:144:12: error: implicitly declaring library function 'fmod' with type 'double (double, double)' [-Werror,-Wimplicit-function-declaration] return fmod(x, y); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:144:12: note: include the header or explicitly provide a declaration for 'fmod' In file included from out/main.c:22: /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:1:28: error: use of undeclared identifier 'FLT_MAX' const float CARP_FLT_MAX = FLT_MAX; ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:47:12: error: implicitly declaring library function 'fabsf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return fabsf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:47:12: note: include the header or explicitly provide a declaration for 'fabsf' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:51:12: error: implicitly declaring library function 'acosf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return acosf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:51:12: note: include the header or explicitly provide a declaration for 'acosf' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:55:12: error: implicitly declaring library function 'asinf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return asinf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:55:12: note: include the header or explicitly provide a declaration for 'asinf' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:59:12: error: implicitly declaring library function 'atanf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return atanf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:59:12: note: include the header or explicitly provide a declaration for 'atanf' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:63:12: error: implicitly declaring library function 'atan2f' with type 'float (float, float)' [-Werror,-Wimplicit-function-declaration] return atan2f(y, x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:63:12: note: include the header or explicitly provide a declaration for 'atan2f' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:67:12: error: implicitly declaring library function 'cosf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return cosf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:67:12: note: include the header or explicitly provide a declaration for 'cosf' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:71:12: error: implicitly declaring library function 'coshf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return coshf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:71:12: note: include the header or explicitly provide a declaration for 'coshf' fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. carp: callCommand: clang -o out/Untitled -I /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/ -fPIC -g -std=c99 -D_DEFAULT_SOURCE -Wall -Werror -Wno-unused-variable -Wno-self-assign -lm out/main.c (exit 1): failed Have you had any better luck? jgart via Guix-patches via writes: > * gnu/packages/lisp.scm (carp): New variable. > > here's v4. v3 fails ;() > --- > gnu/packages/lisp.scm | 57 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 57 insertions(+) > > diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm > index 4899943ba8..c7ba84c771 100644 > --- a/gnu/packages/lisp.scm > +++ b/gnu/packages/lisp.scm > @@ -55,6 +55,7 @@ (define-module (gnu packages lisp) > #:use-module (guix build-system gnu) > #:use-module (guix build-system ant) > #:use-module (guix build-system asdf) > + #:use-module (guix build-system haskell) > #:use-module (guix build-system trivial) > #:use-module (gnu packages admin) > #:use-module (gnu packages base) > @@ -71,10 +72,14 @@ (define-module (gnu packages lisp) > #:use-module (gnu packages gl) > #:use-module (gnu packages glib) > #:use-module (gnu packages groff) > + #:use-module (gnu packages haskell-check) > + #:use-module (gnu packages haskell-web) > + #:use-module (gnu packages haskell-xyz) > #:use-module (gnu packages libffcall) > #:use-module (gnu packages libffi) > #:use-module (gnu packages libsigsegv) > #:use-module (gnu packages linux) > + #:use-module (gnu packages llvm) > #:use-module (gnu packages m4) > #:use-module (gnu packages maths) > #:use-module (gnu packages multiprecision) > @@ -1268,6 +1273,58 @@ (define-public janet > assembler, PEG) is less than 1MB.") > (license license:expat))) > > +(define-public carp > + (package > + (name "carp") > + (version "0.5.5") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/carp-lang/Carp") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "14jdnv0ljqvpr9ych1plfw7hp5q57a8j1bv8h3v345x06z783d07")))) > + (build-system haskell-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + ;; Carp looks inside the sources checkout to know where to > + ;; find its core libraries and other files. > + ;; Carp emits C code and tries to compile it with an external > + ;; C compiler. On Linux it defaults to Clang. > + (add-after 'install 'set-carp-dir-and-path > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (let ((out (assoc-ref outputs "out")) > + (sources (assoc-ref inputs "source")) > + (clang (assoc-ref inputs "clang"))) > + (wrap-program (string-append out "/bin/carp") > + `("CARP_DIR" = (,sources)) > + `("PATH" = (,(string-append clang "/bin")))) > + (wrap-program (string-append out "/bin/carp-header-parse") > + `("CARP_DIR" = (,sources)) > + `("PATH" = (,(string-append clang "/bin")))))))))) > + (native-inputs (list ghc-hunit)) > + (inputs (list bash-minimal > + clang > + ghc-blaze-markup > + ghc-blaze-html > + ghc-split > + ghc-ansi-terminal > + ghc-cmark > + ghc-edit-distance > + ghc-hashable > + ghc-open-browser > + ghc-optparse-applicative)) > + (home-page "https://carp-lang.org/") > + (synopsis "Statically typed Lisp without a garbage collector") > + (description > +"@code{carp} is a programming language designed to work well for > +interactive and performance sensitive use cases like games, sound > +synthesis and visualizations.") > + (license license:asl2.0))) > + > (define-public lisp-repl-core-dumper > (package > (name "lisp-repl-core-dumper") From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 30 17:41:16 2022 Received: (at 58898) by debbugs.gnu.org; 30 Oct 2022 21:41:16 +0000 Received: from localhost ([127.0.0.1]:39106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opG3P-0000bT-Fr for submit@debbugs.gnu.org; Sun, 30 Oct 2022 17:41:16 -0400 Received: from mx1.dismail.de ([78.46.223.134]:6983) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opG3N-0000bE-50 for 58898@debbugs.gnu.org; Sun, 30 Oct 2022 17:41:14 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 0d010cc3; Sun, 30 Oct 2022 22:41:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=NvsviN18b0NcCWgm2Oy0F 2zNgmaPEUngd4xDfsRhaEg=; b=rpoisRZftXKGbTJBEmsGYlVAkzigMKIKTYTRD IIwuuCUqf8XDlQozUvyV/lxKkOcKQLei3fV9gwMsA7Hr7eNo0V5pNU24w27/o6c7 aNBNY7xvB3UD/sHAiTkcI3f8kiQInEsiri+TLxCGzKF+3qpJm1YQS248McdxGPTp MBrZa5+tgStZpoB+lLubE/Q4x8QDzI/JjQuMQmriWeHdmVB3/QE2zVef82sLE+GC ararlMQud8Gt9ZlarU19x5q9auk0jQ6AY3N+pkCce3hQLXrnvHHP1hhK7MNPTkWd aRyIJSDVq9hQqfA1m1SbBeyrBdorYmb3SLPJcgO+UzAL48qQQ== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 978c16dd; Sun, 30 Oct 2022 22:41:03 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 2984d13d; Sun, 30 Oct 2022 22:41:03 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 20deb203 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 30 Oct 2022 22:40:57 +0100 (CET) From: jgart To: 58898@debbugs.gnu.org Subject: [PATCH v5] gnu: Add carp. Date: Sun, 30 Oct 2022 16:38:42 -0500 Message-Id: <20221030213840.13337-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58898 Cc: Christine Lemmer-Webber , "\(" , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/lisp.scm (carp): New variable. Co-authored-by: ( hi christine, here is v5 co-authored with paren. double function works now ;() see here: https://paste.sr.ht/~unmatched-paren/712cc5a63e3feb2981d6aaaed97f4c0726c8f3bb --- gnu/packages/lisp.scm | 72 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 4899943ba8..3db2e5e74a 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2021 Charles Jackson ;;; Copyright © 2022 Joeke de Graaf ;;; Copyright © 2021, 2022 jgart +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -55,6 +56,7 @@ (define-module (gnu packages lisp) #:use-module (guix build-system gnu) #:use-module (guix build-system ant) #:use-module (guix build-system asdf) + #:use-module (guix build-system haskell) #:use-module (guix build-system trivial) #:use-module (gnu packages admin) #:use-module (gnu packages base) @@ -71,10 +73,14 @@ (define-module (gnu packages lisp) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages groff) + #:use-module (gnu packages haskell-check) + #:use-module (gnu packages haskell-web) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages libffcall) #:use-module (gnu packages libffi) #:use-module (gnu packages libsigsegv) #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) #:use-module (gnu packages m4) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) @@ -1268,6 +1274,72 @@ (define-public janet assembler, PEG) is less than 1MB.") (license license:expat))) +(define-public carp + (package + (name "carp") + (version "0.5.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/carp-lang/Carp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14jdnv0ljqvpr9ych1plfw7hp5q57a8j1bv8h3v345x06z783d07")))) + (build-system haskell-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + ;; Carp looks inside the sources checkout to know where to + ;; find its core libraries and other files. + ;; Carp emits C code and tries to compile it with an external + ;; C compiler. On Linux it defaults to Clang. + (add-after 'install 'wrap-programs + (lambda* (#:key inputs #:allow-other-keys) + (define (wrap-carp-program program) + (wrap-program (string-append + #$output "/bin/" program) + `("CARP_DIR" prefix + (#$(package-source this-package))) + `("PATH" prefix + ,(list (dirname + (search-input-file inputs "bin/clang")) + (dirname + (search-input-file inputs "bin/ld")))) + `("C_INCLUDE_PATH" prefix + ,(list (dirname + (search-input-directory + inputs "include/linux")) + (dirname + (search-input-file + inputs "include/stdlib.h")))))) + + (for-each wrap-carp-program + (list "carp" + "carp-header-parse"))))))) + (inputs + (list bash-minimal + clang + ghc-blaze-markup + ghc-blaze-html + ghc-split + ghc-ansi-terminal + ghc-cmark + ghc-edit-distance + ghc-hashable + ghc-open-browser + ghc-optparse-applicative)) + (native-inputs + (list ghc-hunit)) + (home-page "https://carp-lang.org/") + (synopsis "Statically typed Lisp without a garbage collector") + (description + "@code{carp} is a Lisp-like programming language that compiles to +C. It features inferred static typing, macros, automatic memory +management without a garbage collector, a REPL, and straightforward +integration with code written in C.") + (license license:asl2.0))) (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 08 21:49:01 2022 Received: (at submit) by debbugs.gnu.org; 9 Nov 2022 02:49:01 +0000 Received: from localhost ([127.0.0.1]:38539 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osb9A-00033m-OR for submit@debbugs.gnu.org; Tue, 08 Nov 2022 21:49:00 -0500 Received: from lists.gnu.org ([209.51.188.17]:56598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1osb99-00033f-8V for submit@debbugs.gnu.org; Tue, 08 Nov 2022 21:48:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osb98-0001HB-RH for guix-patches@gnu.org; Tue, 08 Nov 2022 21:48:59 -0500 Received: from mx2.dismail.de ([159.69.191.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osb92-00038H-RB for guix-patches@gnu.org; Tue, 08 Nov 2022 21:48:58 -0500 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 93b45079; Wed, 9 Nov 2022 03:48:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=date :message-id:from:to:cc:subject:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s= 20190914; bh=31hy6xBdjd6qGTvBCXYXoxskQsuCrZt7GDAka83/RvU=; b=UaP rXfpXREWxgJlTMN9/VtbatZ28VeUtcjmCxf+3v+y8YBt/c/eGXlKEVpx9TdVC+ol 6cZTTXBXSP8PSSMUCnQWEVT80OGBFm9fPcxy2IjRGgDWjnmkWz65KKHyWu1GDwr7 fmdbVQAa4NTr9Vwz/ofALOUb+jD3UyEkiZ9BudMXcMEgu+IcImrwbABXrDyrxWst TlcxOZsVlGc/0+OWdA11Tvw/gJlfGa8EfEDilLmW2vDh7ejqwDathgd52GFstDtL 8/fkBq5zmTVq6fP4bRhtxQ0+Pd3m3Y47CnrfS+qPI04RPJkwiBFMSU71QC86Ymtb 79mKFHEjIxqYe11odSQ== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx2.dismail.de (OpenSMTPD) with ESMTP id fa3f6951; Wed, 9 Nov 2022 03:48:46 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 21d0e8b4; Wed, 9 Nov 2022 03:48:46 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id a5451633 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 9 Nov 2022 03:48:45 +0100 (CET) Date: Tue, 8 Nov 2022 20:48:39 -0600 Message-ID: <20221108204839.GB5254@dismail.de> From: jgart To: Christine Lemmer-Webber Subject: Re: [bug#58898] [PATCH v4] gnu: Add carp. In-Reply-To: <875yg1jkjs.fsf@dustycloud.org> References: <20221030160224.30625-1-jgart@dismail.de> <20221030163024.2244-1-jgart@dismail.de> <875yg1jkjs.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=159.69.191.136; envelope-from=jgart@dismail.de; helo=mx2.dismail.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: 58898@debbugs.gnu.org, guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) On Sun, 30 Oct 2022 13:18:22 -0400 Christine Lemmer-Webber wrote: Hi Christine, Just leaving a friendly reminder if you'd be able to look at this patch again when you get a chance. I think it might be good to go now but let me know what your experience is with the newest patch. all best, jgart https://whereis.みんな/ From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 11 00:55:35 2022 Received: (at 58898) by debbugs.gnu.org; 11 Nov 2022 05:55:35 +0000 Received: from localhost ([127.0.0.1]:44889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otN0p-0004DE-9w for submit@debbugs.gnu.org; Fri, 11 Nov 2022 00:55:35 -0500 Received: from mx1.dismail.de ([78.46.223.134]:37168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otN0m-0004Cz-Dp for 58898@debbugs.gnu.org; Fri, 11 Nov 2022 00:55:34 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 78df184c; Fri, 11 Nov 2022 06:55:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=9PXEFcT5HPsxLvLYh1bQ+ A6r4j6LA2M0dVvTT1ry+DU=; b=ORbrk/q2fzFa1lfktLrHjGQ3BBotIT0c+K84s HQ1kLp5CnVG5wVd5pDc34jmeQ6DEuscj7CZztoIBapxu8uAfJLKlUujBpLLrMUTi Z8yhraUzeznJXEbgo3S26IM8CT6V92W/tPfRVkbL0Us1uqeHVhQyzmtODy776Bz1 ji6WKG6kUB2vnvGUHV8GzQyCF/FNrvZjtlTfD9X+jt0tmCwvgMha0ZrsnGNID7Dx GhHduMNeV+EWOJfKXREUkHnOU/MB71mOEhaj7Z1TuN7KDHCo5ftljBPnpzKK/tOs zCYVsfVq9GTlugy5oHEG0bTTKEcibM9O2OmzVuOq2Src6Kjig== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id d6cb9f86; Fri, 11 Nov 2022 06:55:24 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 2d30d1ea; Fri, 11 Nov 2022 06:55:24 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 036694ed (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 11 Nov 2022 06:55:23 +0100 (CET) From: jgart To: 58898@debbugs.gnu.org Subject: [PATCH v2] gnu: Add carp. Date: Thu, 10 Nov 2022 23:55:07 -0600 Message-Id: <20221111055506.21408-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58898 Cc: "\(" , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/lisp.scm (carp): New variable. Co-authored-by: ( --- gnu/packages/lisp.scm | 72 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index d0f24163cb..80018f8e1a 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2021 Charles Jackson ;;; Copyright © 2022 Joeke de Graaf ;;; Copyright © 2021, 2022 jgart +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -55,6 +56,7 @@ (define-module (gnu packages lisp) #:use-module (guix build-system gnu) #:use-module (guix build-system ant) #:use-module (guix build-system asdf) + #:use-module (guix build-system haskell) #:use-module (guix build-system trivial) #:use-module (gnu packages admin) #:use-module (gnu packages base) @@ -71,10 +73,14 @@ (define-module (gnu packages lisp) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages groff) + #:use-module (gnu packages haskell-check) + #:use-module (gnu packages haskell-web) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages libffcall) #:use-module (gnu packages libffi) #:use-module (gnu packages libsigsegv) #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) #:use-module (gnu packages m4) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) @@ -1257,6 +1263,72 @@ (define-public janet assembler, PEG) is less than 1MB.") (license license:expat))) +(define-public carp + (package + (name "carp") + (version "0.5.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/carp-lang/Carp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14jdnv0ljqvpr9ych1plfw7hp5q57a8j1bv8h3v345x06z783d07")))) + (build-system haskell-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + ;; Carp looks inside the sources checkout to know where to + ;; find its core libraries and other files. + ;; Carp emits C code and tries to compile it with an external + ;; C compiler. On Linux it defaults to Clang. + (add-after 'install 'wrap-programs + (lambda* (#:key inputs #:allow-other-keys) + (define (wrap-carp-program program) + (wrap-program (string-append + #$output "/bin/" program) + `("CARP_DIR" prefix + (#$(package-source this-package))) + `("PATH" prefix + ,(list (dirname + (search-input-file inputs "bin/clang")) + (dirname + (search-input-file inputs "bin/ld")))) + `("C_INCLUDE_PATH" prefix + ,(list (dirname + (search-input-directory + inputs "include/linux")) + (dirname + (search-input-file + inputs "include/stdlib.h")))))) + + (for-each wrap-carp-program + (list "carp" + "carp-header-parse"))))))) + (inputs + (list bash-minimal + clang + ghc-blaze-markup + ghc-blaze-html + ghc-split + ghc-ansi-terminal + ghc-cmark + ghc-edit-distance + ghc-hashable + ghc-open-browser + ghc-optparse-applicative)) + (native-inputs + (list ghc-hunit)) + (home-page "https://carp-lang.org/") + (synopsis "Statically typed Lisp without a garbage collector") + (description + "@code{carp} is a Lisp-like programming language that compiles to +C. It features inferred static typing, macros, automatic memory +management without a garbage collector, a REPL, and straightforward +integration with code written in C.") + (license license:asl2.0))) (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 11 08:34:28 2022 Received: (at 58898) by debbugs.gnu.org; 11 Nov 2022 13:34:28 +0000 Received: from localhost ([127.0.0.1]:45358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otUAt-0005DG-Io for submit@debbugs.gnu.org; Fri, 11 Nov 2022 08:34:28 -0500 Received: from mx2.dismail.de ([159.69.191.136]:31830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otUAi-0005Cm-46 for 58898@debbugs.gnu.org; Fri, 11 Nov 2022 08:34:26 -0500 Received: from mx2.dismail.de (localhost [127.0.0.1]) by mx2.dismail.de (OpenSMTPD) with ESMTP id c96a4e4a; Fri, 11 Nov 2022 14:34:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=oufgRHY/J4gNoMFkPk8CU BhB8ufOYy/N/CGGZZmGKXI=; b=Z6y9H5y/QUUeiQ8cyc3zc3Dzccu0a5Ks1PjN4 9oZjcxXhtF9SqM5w8M1q+IHuetkESk4WLuFvk/141wijUvLJJs4viaWUA71fAQ6+ udSDxmDYI+0zJc2cMslClhZVLBO7MNsJuVqq+KLT/Adq0DJWAlFWXgU5WqwFjMjC FDVzxreG1SwOXZ2CP5m7oC43dDAGcOsAoj7AZjKKKuwJJn4SHeXL7jowcrnl/WEd KbDgZUYhO+JRmolzqcOj4ya8g0ihy2fhPECtr1ITKm41EGsswLAcrxje1NzRn6+m 6uEDbJsCZhnbzudagxqqzL1pmfENH0JTcx+qtu5uzxb409+dw== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx2.dismail.de (OpenSMTPD) with ESMTP id 2c815b8a; Fri, 11 Nov 2022 14:34:06 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id a56972d1; Fri, 11 Nov 2022 14:34:06 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id ed189a5c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 11 Nov 2022 14:34:00 +0100 (CET) From: jgart To: 58898@debbugs.gnu.org Subject: [PATCH v7] gnu: Add carp. Date: Fri, 11 Nov 2022 07:32:29 -0600 Message-Id: <20221111133228.1027-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58898 Cc: "\(" , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/lisp.scm (carp): New variable. Co-authored-by: ( Here's a v7. Previous patches were not applying cleanly. all best, jgart --- gnu/packages/lisp.scm | 73 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index d0f24163cb..2e2562c471 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2021 Charles Jackson ;;; Copyright © 2022 Joeke de Graaf ;;; Copyright © 2021, 2022 jgart +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -55,6 +56,7 @@ (define-module (gnu packages lisp) #:use-module (guix build-system gnu) #:use-module (guix build-system ant) #:use-module (guix build-system asdf) + #:use-module (guix build-system haskell) #:use-module (guix build-system trivial) #:use-module (gnu packages admin) #:use-module (gnu packages base) @@ -71,10 +73,14 @@ (define-module (gnu packages lisp) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages groff) + #:use-module (gnu packages haskell-check) + #:use-module (gnu packages haskell-web) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages libffcall) #:use-module (gnu packages libffi) #:use-module (gnu packages libsigsegv) #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) #:use-module (gnu packages m4) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) @@ -1257,6 +1263,73 @@ (define-public janet assembler, PEG) is less than 1MB.") (license license:expat))) +(define-public carp + (package + (name "carp") + (version "0.5.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/carp-lang/Carp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14jdnv0ljqvpr9ych1plfw7hp5q57a8j1bv8h3v345x06z783d07")))) + (build-system haskell-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + ;; Carp looks inside the sources checkout to know where to + ;; find its core libraries and other files. + ;; Carp emits C code and tries to compile it with an external + ;; C compiler. On Linux it defaults to Clang. + (add-after 'install 'wrap-programs + (lambda* (#:key inputs #:allow-other-keys) + (define (wrap-carp-program program) + (wrap-program (string-append + #$output "/bin/" program) + `("CARP_DIR" prefix + (#$(package-source this-package))) + `("PATH" prefix + ,(list (dirname + (search-input-file inputs "bin/clang")) + (dirname + (search-input-file inputs "bin/ld")))) + `("C_INCLUDE_PATH" prefix + ,(list (dirname + (search-input-directory + inputs "include/linux")) + (dirname + (search-input-file + inputs "include/stdlib.h")))))) + + (for-each wrap-carp-program + (list "carp" + "carp-header-parse"))))))) + (inputs + (list bash-minimal + clang + ghc-blaze-markup + ghc-blaze-html + ghc-split + ghc-ansi-terminal + ghc-cmark + ghc-edit-distance + ghc-hashable + ghc-open-browser + ghc-optparse-applicative)) + (native-inputs + (list ghc-hunit)) + (home-page "https://carp-lang.org/") + (synopsis "Statically typed Lisp without a garbage collector") + (description + "@code{carp} is a Lisp-like programming language that compiles to +C. It features inferred static typing, macros, automatic memory +management without a garbage collector, a REPL, and straightforward +integration with code written in C.") + (license license:asl2.0))) + (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 11 08:37:51 2022 Received: (at 58898) by debbugs.gnu.org; 11 Nov 2022 13:37:52 +0000 Received: from localhost ([127.0.0.1]:45367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otUEB-0005II-Cr for submit@debbugs.gnu.org; Fri, 11 Nov 2022 08:37:51 -0500 Received: from mx1.dismail.de ([78.46.223.134]:42128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otUE9-0005I3-KN for 58898@debbugs.gnu.org; Fri, 11 Nov 2022 08:37:50 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 26c942be; Fri, 11 Nov 2022 14:37:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=U4b5LqewVdb3iq6NmQ2Xg wJgQfxaYQEYV8Z+hdZKQqo=; b=D01737Y7BjJd3WSzh4pflFQuRSMY8dy9rlhtB y4Xctoa0z32fyZt6gUxSbLekNSfH0FRztzmv0Ku6FBDHKUe9Zx0q7NVmX4IY3hxZ sJqOHs8fxsrlgMYagcH8S4xqrgSy7R20NB1aROo51WJnUSCQqO7ql/aUULdkmU3K EgbXdO/MhBC6KnWEwtqag/sl/tFgJR4FAPIjYfGEL3icZK6jb1TXHg5hGm/oDi93 fPfURXlrafUK/wzR1p0NA5ueDOXr7A6wJ7oXg1eYhuldv0kyIBPVm/EQpAHK9YTn TY/AnvBtb761J/sBkR3FdtVDyfenpeQO1vBnIb5qAUo0+RU8w== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 97119e30; Fri, 11 Nov 2022 14:37:42 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 68f7a8fe; Fri, 11 Nov 2022 14:37:42 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 448a93d3 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 11 Nov 2022 14:37:41 +0100 (CET) From: jgart To: 58898@debbugs.gnu.org Subject: [PATCH v8] gnu: Add carp. Date: Fri, 11 Nov 2022 07:37:27 -0600 Message-Id: <20221111133727.1416-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 58898 Cc: "\(" , jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/lisp.scm (carp): New variable. Co-authored-by: ( --- gnu/packages/lisp.scm | 73 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index d0f24163cb..2e2562c471 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2021 Charles Jackson ;;; Copyright © 2022 Joeke de Graaf ;;; Copyright © 2021, 2022 jgart +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -55,6 +56,7 @@ (define-module (gnu packages lisp) #:use-module (guix build-system gnu) #:use-module (guix build-system ant) #:use-module (guix build-system asdf) + #:use-module (guix build-system haskell) #:use-module (guix build-system trivial) #:use-module (gnu packages admin) #:use-module (gnu packages base) @@ -71,10 +73,14 @@ (define-module (gnu packages lisp) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages groff) + #:use-module (gnu packages haskell-check) + #:use-module (gnu packages haskell-web) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages libffcall) #:use-module (gnu packages libffi) #:use-module (gnu packages libsigsegv) #:use-module (gnu packages linux) + #:use-module (gnu packages llvm) #:use-module (gnu packages m4) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) @@ -1257,6 +1263,73 @@ (define-public janet assembler, PEG) is less than 1MB.") (license license:expat))) +(define-public carp + (package + (name "carp") + (version "0.5.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/carp-lang/Carp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14jdnv0ljqvpr9ych1plfw7hp5q57a8j1bv8h3v345x06z783d07")))) + (build-system haskell-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + ;; Carp looks inside the sources checkout to know where to + ;; find its core libraries and other files. + ;; Carp emits C code and tries to compile it with an external + ;; C compiler. On Linux it defaults to Clang. + (add-after 'install 'wrap-programs + (lambda* (#:key inputs #:allow-other-keys) + (define (wrap-carp-program program) + (wrap-program (string-append + #$output "/bin/" program) + `("CARP_DIR" prefix + (#$(package-source this-package))) + `("PATH" prefix + ,(list (dirname + (search-input-file inputs "bin/clang")) + (dirname + (search-input-file inputs "bin/ld")))) + `("C_INCLUDE_PATH" prefix + ,(list (dirname + (search-input-directory + inputs "include/linux")) + (dirname + (search-input-file + inputs "include/stdlib.h")))))) + + (for-each wrap-carp-program + (list "carp" + "carp-header-parse"))))))) + (inputs + (list bash-minimal + clang + ghc-blaze-markup + ghc-blaze-html + ghc-split + ghc-ansi-terminal + ghc-cmark + ghc-edit-distance + ghc-hashable + ghc-open-browser + ghc-optparse-applicative)) + (native-inputs + (list ghc-hunit)) + (home-page "https://carp-lang.org/") + (synopsis "Statically typed Lisp without a garbage collector") + (description + "@code{carp} is a Lisp-like programming language that compiles to +C. It features inferred static typing, macros, automatic memory +management without a garbage collector, a REPL, and straightforward +integration with code written in C.") + (license license:asl2.0))) + (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 12 04:07:50 2022 Received: (at 58898-done) by debbugs.gnu.org; 12 Nov 2022 09:07:50 +0000 Received: from localhost ([127.0.0.1]:47306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otmUQ-00033C-Jk for submit@debbugs.gnu.org; Sat, 12 Nov 2022 04:07:50 -0500 Received: from out2.migadu.com ([188.165.223.204]:21737) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otmUN-000331-9J for 58898-done@debbugs.gnu.org; Sat, 12 Nov 2022 04:07:49 -0500 Message-ID: <542f4e50-b407-f8dc-eee2-313bc9efe3c9@raghavgururajan.name> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1668244063; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=2RavlEQOzw0p2oJLy2O0R6yZMABAjT4rTo1Oe/3uznc=; b=egYDcfewSJkA/dEBXLslkbzIRQg+1BPwTzHPFmegKATJ7YEVoqGOTqpBFYxez1F0byXmN1 LrCqvGkcCVqlUHaEqkBSvK/3gyupB/yUZuXHlN+YtKW2LeQhN90PkMy/CjY3G3ELF1dQ83 4cND0A4vbapu+vh5ID7IlJvtu9dDhIrGmu5gQLMmQRRjmj+oxEPntrW6/ZTy9cGXOqqThE 3b8Kw2WurlsNEIpeak+l4XwhEJtslF8pvO14cBnuNKxvcxePzxVihebWMy4O6iN3mUNz+J JXcAwMgo83vupueOwanG99jQNVusGTmGBOCXAcifit3YMKeOemYs/Li8cntieg== Date: Sat, 12 Nov 2022 04:07:38 -0500 MIME-Version: 1.0 Content-Language: en-CA To: 58898-done@debbugs.gnu.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Raghav Gururajan Subject: Re: [PATCH] gnu: Add carp. Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------FQmCDRKjilH0RZhGcY4U4Mrn" X-Migadu-Flow: FLOW_OUT X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 58898-done Cc: jgart X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------FQmCDRKjilH0RZhGcY4U4Mrn Content-Type: multipart/mixed; boundary="------------E97iioJrEx04J8yXY0p18cfu"; protected-headers="v1" From: Raghav Gururajan To: 58898-done@debbugs.gnu.org Cc: jgart Message-ID: <542f4e50-b407-f8dc-eee2-313bc9efe3c9@raghavgururajan.name> Subject: Re: [PATCH] gnu: Add carp. --------------E97iioJrEx04J8yXY0p18cfu Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 UHVzaGVkIGFzIDAyMDllZTBiNTUgdG8gbWFzdGVyLg0KDQpUaGFua3MgZm9yIHRoZSBwYXRj aC4NCg0KUmVnYXJkcywNClJHLg0K --------------E97iioJrEx04J8yXY0p18cfu-- --------------FQmCDRKjilH0RZhGcY4U4Mrn Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTNLV6qqYzLN9qR1rBfWBZkf4vlUQUCY29iWgUDAAAAAAAKCRBfWBZkf4vlUW0e AP9MET/+d0nHcU7N30RVhIscox/5sQ2SiBs4SgVSHi0ZJQD9EbKlYGi5NsqjG+31QghiI+jmaADS injMiKyHdi7z2Ag= =b1mT -----END PGP SIGNATURE----- --------------FQmCDRKjilH0RZhGcY4U4Mrn-- From unknown Sat Aug 09 13:00:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 10 Dec 2022 12:24:12 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator