From patchwork Sat Jul 1 13:49:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gemmaro X-Patchwork-Id: 51486 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 558A927BBE9; Sat, 1 Jul 2023 14:56:33 +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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS 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 AEF5327BBE2 for ; Sat, 1 Jul 2023 14:56:28 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFb57-0002H6-4q; Sat, 01 Jul 2023 09:56:09 -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 1qFb54-0002Gc-FH for guix-patches@gnu.org; Sat, 01 Jul 2023 09:56:06 -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 1qFb50-000687-SM for guix-patches@gnu.org; Sat, 01 Jul 2023 09:56:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFb50-00030O-Ib for guix-patches@gnu.org; Sat, 01 Jul 2023 09:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61678] [PATCH v3 2/2] gnu: Add smlsharp. Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Jul 2023 13:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61678 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61678@debbugs.gnu.org Cc: gemmaro Received: via spool by 61678-submit@debbugs.gnu.org id=B61678.168821972310467 (code B ref 61678); Sat, 01 Jul 2023 13:56:02 +0000 Received: (at 61678) by debbugs.gnu.org; 1 Jul 2023 13:55:23 +0000 Received: from localhost ([127.0.0.1]:57287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFb4N-0002iI-0W for submit@debbugs.gnu.org; Sat, 01 Jul 2023 09:55:23 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:57377) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFb4I-0002eA-P6 for 61678@debbugs.gnu.org; Sat, 01 Jul 2023 09:55:21 -0400 Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1b7f92b764dso14338395ad.2 for <61678@debbugs.gnu.org>; Sat, 01 Jul 2023 06:55:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688219712; x=1690811712; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tCM9p58Lh6a8FWs7F3bXabOcoUeubb2UsOT8xfBvJ5I=; b=eGbA3IFnWn1Hp3faG1Kb4DzhCmvOmxK2PIRtBrtyT95ENHhCa5ckZMs+YAJAqHy9W6 WjIGLCzFQA8AXsolskWgC8RSeO2RhXVQH/jFWyam6fmjBJFznKdRzP52BKbp8W2JKgz4 AxdUTpeW6n80RTcpi5703cKC/h5Z7aeOEi+VTVnfE3pCdSVnUNpaTB03iiOIKruDa/ft IGekedhBJVRBoEd6lhxD4xoTURlefnV2/VgNX/YQ+PKA1Wr3SIgvE+GAiJEjPItUgsCh yxa6YtXN42L1BPlg6s/wseWOfHXmO/xYnUvors0CRcwHfdxMBK2WX6l8m62CZvtHjgUh b/oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688219712; x=1690811712; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tCM9p58Lh6a8FWs7F3bXabOcoUeubb2UsOT8xfBvJ5I=; b=YA46eiypJ/Be9LQ6fXSSDp0ebKXrK8XJvbGMux68UlH3oVxzVfkX+omEPswZTS0xcC MoumJc4H1n5NmO9Gwb2AIs5aZW8k3mvII50TllO7/Q1AaYBr1Wk/AyZpUddGd3TkyONe SljDGp3uknMGugaQIfvF+TEQpmmfnTCEiRPIfQo+1da1AHyW2+27fKl0UrBfWB6EsoTN V3KDDRIpQbYX4EnHapgja6iBFwnyDxJY8DEAD+bfN73etXQ/o9OZztuP8t8neTIZIm/H 0IHaU6BpYFWfNjRSKmFSYH2rFuoMRMXyEW78pclnfmrcR7n1M+WTHEIswcBXn4AZdrGV Uoqw== X-Gm-Message-State: ABy/qLawvcp/QH29qdGYsPmNH2LLtf1Gm9szPpa2klFNybNfCBuzeLZP s6dYAOGhnT2C3YjM+ZXaNOhHdqJy4v4= X-Google-Smtp-Source: APBJJlGHxm4KEL8FpJN3IGKGnsNfAH5JRFQhev3+LBCjlDacYsS7uV4mT7V8+VcRhZOM6f/dhoWtrw== X-Received: by 2002:a17:90b:14e:b0:25e:d013:c22c with SMTP id em14-20020a17090b014e00b0025ed013c22cmr3532421pjb.47.1688219712470; Sat, 01 Jul 2023 06:55:12 -0700 (PDT) Received: from mac.gemmaro.name ([240f:74:d1f0:1:ba1:e787:c9e:b1dc]) by smtp.gmail.com with ESMTPSA id c3-20020a17090a490300b0026307fa0442sm9083540pjh.49.2023.07.01.06.55.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jul 2023 06:55:12 -0700 (PDT) From: gemmaro Date: Sat, 1 Jul 2023 22:49:06 +0900 Message-Id: X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/sml.scm (smlsharp): New variable. --- gnu/packages/sml.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/sml.scm b/gnu/packages/sml.scm index 368abf6cfa..81fa20e7ce 100644 --- a/gnu/packages/sml.scm +++ b/gnu/packages/sml.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2018 Ricardo Wurmus ;;; Copyright © 2019, 2020 Brett Gilio ;;; Copyright © 2021, 2022 Foo Chuan Wei +;;; Copyright © 2023 gemmaro ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,12 +22,17 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages sml) + #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages lesstif) #:use-module (gnu packages libffi) + #:use-module (gnu packages llvm) #:use-module (gnu packages multiprecision) + #:use-module (gnu packages parallel) #:use-module (gnu packages xorg) #:use-module (guix build-system gnu) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) @@ -340,3 +346,54 @@ (define-public smlnj (license (license:fsf-free "https://www.smlnj.org/license.html" "https://www.gnu.org/licenses/license-list#StandardMLofNJ")))) + +(define-public smlsharp + (package + (name "smlsharp") + (version "4.0.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/smlsharp/smlsharp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0cwpp4azkr79vf3c0w3g3zxv1rdcbi4gs7kp80b7aa1b5cqv04bj")))) + (build-system gnu-build-system) + (arguments + (list #:parallel-build? #t + #:parallel-tests? #t + #:test-target "test" + #:phases #~(modify-phases %standard-phases + ;; NOTE: Needed for running SML# executables + (add-after 'install 'wrap-programs + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (libs (map (lambda (name) + (string-append (assoc-ref + inputs name) + "/lib")) + '("gmp" "massivethreads" "glibc")))) + (with-directory-excursion (string-append out + "/bin") + (for-each (lambda (file) + (wrap-program (basename file) + `("LIBRARY_PATH" prefix + ,libs)) #t) + (find-files "."))))))))) + (inputs (list llvm-11 gmp massivethreads glibc bash-minimal)) + (home-page "https://smlsharp.github.io/en/") + (synopsis + "New language in the Standard ML family") + (description + "SML# is a new generation of the Standard ML family. The main features +of SML# include the following: +@itemize +@item record polymorphism +@item integration with SQL +@item interoperability with C +@item separate compilation and linking +@item multithread support +@end itemize") + (license license:expat)))