From patchwork Thu Jul 28 04:10:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Kehayias X-Patchwork-Id: 41030 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 BC6B727BBEA; Thu, 28 Jul 2022 05:12:54 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable 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 8502127BBE9 for ; Thu, 28 Jul 2022 05:12:53 +0100 (BST) Received: from localhost ([::1]:43454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGutI-0002WP-N7 for patchwork@mira.cbaines.net; Thu, 28 Jul 2022 00:12:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGusV-0002Vy-1U for guix-patches@gnu.org; Thu, 28 Jul 2022 00:12:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39355) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGusU-0002BL-2s for guix-patches@gnu.org; Thu, 28 Jul 2022 00:12:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGusT-0005gw-UN for guix-patches@gnu.org; Thu, 28 Jul 2022 00:12:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56806] [PATCH 7/9] gnu: Add neko. References: <9PX8REXHYFolHkT-TXF_SZcRFDEe1-1KwK9riBoz1tnsKV2raznmLO3YTlzbpdyJ9dBOqnpcaUomHmLfOWjytFrkLEvIW_upqCAA_-byN50=@protonmail.com> In-Reply-To: <9PX8REXHYFolHkT-TXF_SZcRFDEe1-1KwK9riBoz1tnsKV2raznmLO3YTlzbpdyJ9dBOqnpcaUomHmLfOWjytFrkLEvIW_upqCAA_-byN50=@protonmail.com> Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Jul 2022 04:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56806 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "56806@debbugs.gnu.org" <56806@debbugs.gnu.org> Received: via spool by 56806-submit@debbugs.gnu.org id=B56806.165898147121775 (code B ref 56806); Thu, 28 Jul 2022 04:12:01 +0000 Received: (at 56806) by debbugs.gnu.org; 28 Jul 2022 04:11:11 +0000 Received: from localhost ([127.0.0.1]:57329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGurf-0005f9-0Q for submit@debbugs.gnu.org; Thu, 28 Jul 2022 00:11:11 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:34778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGurc-0005eh-De for 56806@debbugs.gnu.org; Thu, 28 Jul 2022 00:11:09 -0400 Date: Thu, 28 Jul 2022 04:10:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1658981462; x=1659240662; bh=3D2Wo+YdTJnejlcrP1Amn6nBHtlRqCxdh9ORGlbsOtY=; h=Date:To:From:Reply-To:Subject:Message-ID:Feedback-ID:From:To:Cc: Date:Subject:Reply-To:Feedback-ID:Message-ID; b=xXlRSKP1OVuLzuQoD3J+3q/snN9Yzf9djC9T7/ngaFcY660RgIkVBOPug6TKJVdmb B178cYArTAD9vsplvJZ9kBbn/xyH/btzmF+g2zMs6hX0TOcFvPuigCSATCqFv6EhQA HQYglJbro0oZb0/RfHj/m9rynuhSPpdBx9O9DvNK01bnsRJcO2YN0fTZGt3loRym6Y BqWIT5obH5OG9ppMToumY0cVuVKZ3c/09qplpL5uz8cAmDXYkgxgmAZzjz2J7hDHs1 a7e65siWnM7YlHdzjLc9HhaIL5eeZ6d64Y6zmDhto4kmjB77aBaAxRUuJvDpqOEWQd DkCEV3krjnlNA== Message-ID: Feedback-ID: 7805494:user:proton MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches X-Patchwork-Original-From: John Kehayias via Guix-patches via From: John Kehayias X-getmail-retrieved-from-mailbox: Patches Empty Message From 1d5b7fc835c4bb4953597eee1c96c5ecf366f48c Mon Sep 17 00:00:00 2001 From: John Kehayias Date: Wed, 27 Jul 2022 23:34:42 -0400 Subject: [PATCH 7/9] gnu: Add neko. * gnu/packages/haxe.scm: New module. (neko): New variable. * gnu/local.mk (GNU_SYSTEM_MODULES): Add new module. --- gnu/local.mk | 2 + gnu/packages/haxe.scm | 107 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 gnu/packages/haxe.scm diff --git a/gnu/local.mk b/gnu/local.mk index 0c4edf6e56..c837b2520a 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -50,6 +50,7 @@ # Copyright © 2022 Daniel Meißner # Copyright © 2022 Remco van 't Veer # Copyright © 2022 Artyom V. Poptsov +# Copyright © 2022 John Kehayias # # This file is part of GNU Guix. # @@ -301,6 +302,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/haskell-crypto.scm \ %D%/packages/haskell-web.scm \ %D%/packages/haskell-xyz.scm \ + %D%/packages/haxe.scm \ %D%/packages/heads.scm \ %D%/packages/hexedit.scm \ %D%/packages/hugs.scm \ diff --git a/gnu/packages/haxe.scm b/gnu/packages/haxe.scm new file mode 100644 index 0000000000..6d8d9caca1 --- /dev/null +++ b/gnu/packages/haxe.scm @@ -0,0 +1,107 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 John Kehayias +;;; +;;; 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 haxe) + #:use-module (gnu packages) + #:use-module (gnu packages apr) + #:use-module (gnu packages audio) + #:use-module (gnu packages bdw-gc) + #:use-module (gnu packages compression) + #:use-module (gnu packages databases) + #:use-module (gnu packages gl) + #:use-module (gnu packages graphics) + #:use-module (gnu packages gtk) + #:use-module (gnu packages image) + #:use-module (gnu packages libevent) + #:use-module (gnu packages mp3) + #:use-module (gnu packages ocaml) + #:use-module (gnu packages pcre) + #:use-module (gnu packages perl) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages sdl) + #:use-module (gnu packages sqlite) + #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) + #:use-module (gnu packages web) + #:use-module (gnu packages xiph) + #:use-module (guix build-system cmake) + #:use-module (guix build-system gnu) + #:use-module (guix build-system dune) + #:use-module (guix download) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix utils)) + +(define-public neko + (package + (name "neko") + (version "2.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/HaxeFoundation/neko") + (commit (string-append + "v" + (string-map (lambda (x) (if (char=? x #\.) #\- x)) version))))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xgw646pghsjjbzd8qlaq17vq96swlrazpivrvyrhdj36vb3sci3")))) + (build-system cmake-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'prefix + (lambda _ + (substitute* "CMakeLists.txt" + (("\\\\\\$ORIGIN") + (string-append #$output "/lib")))))))) + (inputs (list apr + apr-util + gtk+-2 + httpd + libgc + mbedtls-apache + mysql + openssl + pcre + sqlite + zlib)) + (native-inputs (list git pkg-config)) ; git for source_archive and applying patch + (home-page "https://nekovm.org/") + (synopsis "High-level dynamically typed programming language and virtual +machine") + (description + "The Neko programming language is a high-level dynamically typed +programming language. It can be used as an embedded scripting language. It +has been designed to provide a common runtime for several different languages. +You can easily extend the language with C libraries. You can also write +generators from your own language to Neko and then use the Neko Runtime to +compile, run, and access existing libraries. + +Neko has a compiler and a virtual machine. The Virtual Machine is both very +lightweight and well optimized, so it can run very quickly. The VM can be +easily embedded into any application and your libraries can be accessed using +the C foreign function interface. + +You can use the compiler as standalone command line executable separate from +the VM, or as a Neko library to perform compile-and-run funtions for +interactive languages.") + (license license:expat))) -- 2.37.1