From patchwork Sun Oct 23 20:30:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Evgeny Pisemsky X-Patchwork-Id: 43948 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 29AE827BBEB; Mon, 24 Oct 2022 04:28:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C271427BBE9 for ; Mon, 24 Oct 2022 04:28:13 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omnJz-0005mc-R5; Sun, 23 Oct 2022 22:36:12 -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 1omhce-0001FM-Po for guix-patches@gnu.org; Sun, 23 Oct 2022 16:31:12 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1omhcc-0003wQ-6e for guix-patches@gnu.org; Sun, 23 Oct 2022 16:31:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1omhcb-0005p6-PB for guix-patches@gnu.org; Sun, 23 Oct 2022 16:31:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58749] [PATCH] gnu: Add guilescript. Resent-From: Evgeny Pisemsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 23 Oct 2022 20:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58749 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58749@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166655705722372 (code B ref -1); Sun, 23 Oct 2022 20:31:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Oct 2022 20:30:57 +0000 Received: from localhost ([127.0.0.1]:46525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omhcW-0005om-RX for submit@debbugs.gnu.org; Sun, 23 Oct 2022 16:30:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:35054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omhcU-0005od-UM for submit@debbugs.gnu.org; Sun, 23 Oct 2022 16:30:55 -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 1omhcU-0001E9-E3 for guix-patches@gnu.org; Sun, 23 Oct 2022 16:30:54 -0400 Received: from sofi-shared.hosting.energy ([2001:41d0:602:1f56::] helo=sofi.hosting.energy) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omhcS-0003vk-4x for guix-patches@gnu.org; Sun, 23 Oct 2022 16:30:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pisemsky.com; s=dkim; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=PLEK+oFors0ZaAqtQ42PW6EY0SrinGqR629YpdsTjqc=; b=gQ9Kp7a/VrNia2RPkNAypcvRpJ cjOke5n58QMPk2mPa+q/Nqpp4wdSQnXhf1lpwnUCMKqLQuWoXcUzcTN5RlUkGnfXowUbzg0Zin7Hx HCfPawd6Lk9S+tSFS8m2swUrGphTXW6/ySvlQNi7B31w3cumo7nIkPVaq1EwC3FpidFA=; Received: from [176.59.47.225] (helo=alpha) by sofi.hosting.energy with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1omhcN-0006vY-4p for guix-patches@gnu.org; Sun, 23 Oct 2022 23:30:47 +0300 From: Evgeny Pisemsky Date: Sun, 23 Oct 2022 23:30:44 +0300 Message-ID: <87k04q9taj.fsf@pisemsky.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Disposition: attachment; filename=0001-gnu-Add-guilescript.patch Received-SPF: pass client-ip=2001:41d0:602:1f56::; envelope-from=evgeny@pisemsky.com; helo=sofi.hosting.energy X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_PASS=-0.001, T_SPF_HELO_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Sender: "Guix-patches" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From a39aa047301867ff06b957a33a0d8af802c24a4d Mon Sep 17 00:00:00 2001 From: Evgeny Pisemsky Date: Sun, 23 Oct 2022 23:15:16 +0300 Subject: [PATCH] gnu: Add guilescript. * gnu/packages/guile-xyz.scm (guilescript): New variable. --- gnu/packages/guile-xyz.scm | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 209ba694d7..2e7b5431ed 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -44,6 +44,7 @@ ;;; Copyright © 2022 Antero Mejr ;;; Copyright © 2022 Taiju HIGASHI ;;; Copyright © 2022 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2022 Evgeny Pisemsky ;;; ;;; This file is part of GNU Guix. ;;; @@ -264,6 +265,50 @@ (define-public artanis (home-page "https://www.gnu.org/software/artanis/") (license (list license:gpl3+ license:lgpl3+)))) ;dual license +(define-public guilescript + (package + (name "guilescript") + (version "0.2.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aconchillo/guilescript") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "15bvgklv77kvkl8dizriqblfir6rid5nm79ymi3m2fvpd7wf77qy")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags '("GUILE_AUTO_COMPILE=0") + #:modules (((guix build guile-build-system) + #:select (target-guile-effective-version)) + ,@%gnu-build-system-modules) + #:imported-modules ((guix build guile-build-system) + ,@%gnu-build-system-modules) + #:phases (modify-phases %standard-phases + (add-after 'install 'wrap-guilescript + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (version (target-guile-effective-version)) + (scm (string-append "/share/guile/site/" version)) + (go (string-append "/lib/guile/" version "/site-ccache"))) + (wrap-program (string-append bin "/guilescript") + `("GUILE_LOAD_PATH" prefix + (,(string-append out scm))) + `("GUILE_LOAD_COMPILED_PATH" prefix + (,(string-append out go))))) + #t))))) + (native-inputs (list autoconf automake pkg-config)) + (inputs (list guile-3.0 bash-minimal)) + (home-page "https://github.com/aconchillo/guilescript") + (synopsis "Guile to JavaScript compiler") + (description + "GuileScript is a toy compiler that aims to compile Guile to JavaScript. It +currently does not do much, but it might in the future.") + (license license:gpl3+))) + ;; There are no releases yet of this package. (define-public guile-pipe (let ((commit "0746ec38d19d844dff0c6f62f209b2b6c8d8872e") base-commit: 3734857fc55df2c599c2fe5cc4ae49f5d47879fc -- 2.38.0