From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oMuHB40woGTJMgEASxT56A (envelope-from ) for ; Sat, 01 Jul 2023 15:56:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CPaRBo0woGTZJwAAG6o9tA (envelope-from ) for ; Sat, 01 Jul 2023 15:56:29 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9CFECA65E for ; Sat, 1 Jul 2023 15:56:28 +0200 (CEST) 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688219788; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tCM9p58Lh6a8FWs7F3bXabOcoUeubb2UsOT8xfBvJ5I=; b=lIyq1bt6Ip5JogBgbmPYnOF8b91bcN7y0Zx7LjdhtEq+2jJuyl9a/iSD+iWteH7SUanV6g wN08aTvQIOPdZ0C8srwwQXguHkvmsclawRkPHq26PfGAU0FIQf8OL1oXCqEkSm7DwXtKNU 7nLe/ARSZ6Oo8Ys0FPWHOzaI6fuf+DOMfPKwlfdtUf7pGh841s676FbmQK2QflFous5T5z CNDX16ww6dRMWTpTU44w18ROWik5xL82Pc7ajvXPr2v6k1sLcZYZCqWpGpm0csq/7BUuh4 fgmydJ1sX/n6tmh8opOlvUKYwhK7pQKAHDa8wji8bczP0jGXtItc5YtOtYzfmg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=eGbA3IFn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688219788; a=rsa-sha256; cv=none; b=CLCVuOJHf9bsJt0NlZRx7p9z1BiTXdMYhmCG//wtPcP28P0PgLjbpztnms/q8cjWsAkDXv vkqXpvjLmVCDM+UAE4djiSV5NfSIushu9a+6tU6RVO21Ykd3iS9UV5QwI3ovqOoH2wLDtz /cDYvX4arqpkT6MGlTZfJlIuZwrIojxbsat0joBNY3mB0Y1IflJoINeBXeEt0fLx+4QNF8 HvXwnIK8usZW8X8Wn7+ei8qCxtsmAaOZUSrVJZM4OrKPud047HjVEGD7kZmT5btxJZllVS cA+WgLSQlwmqNbOSpAQDQyOUgTVMqPMqirUfOj+X6GU0rVniW1cISDaB1lF0Ww== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=eGbA3IFn; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9CFECA65E X-Spam-Score: -0.66 X-TUID: YATWQAkzsNt+ * 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))) -- 2.40.1