From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oFyhJVr19GN3xgAAbAwnHQ (envelope-from ) for ; Tue, 21 Feb 2023 17:46:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MOJyJVr19GMOQQEAauVa8A (envelope-from ) for ; Tue, 21 Feb 2023 17:46:18 +0100 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 5DFB012EAA for ; Tue, 21 Feb 2023 17:46:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUVm0-00082f-0N; Tue, 21 Feb 2023 11:45:48 -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 1pUTjS-0006CG-Cs for guix-patches@gnu.org; Tue, 21 Feb 2023 09:35:04 -0500 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 1pUTjR-0003l9-N3 for guix-patches@gnu.org; Tue, 21 Feb 2023 09:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUTjR-0001Dr-JM for guix-patches@gnu.org; Tue, 21 Feb 2023 09:35:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61678] [PATCH 2/2] gnu: Add smlsharp. Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Feb 2023 14:35:01 +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.16769900544622 (code B ref 61678); Tue, 21 Feb 2023 14:35:01 +0000 Received: (at 61678) by debbugs.gnu.org; 21 Feb 2023 14:34:14 +0000 Received: from localhost ([127.0.0.1]:55125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUTig-0001CU-6a for submit@debbugs.gnu.org; Tue, 21 Feb 2023 09:34:14 -0500 Received: from mail-pj1-f53.google.com ([209.85.216.53]:54787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUTid-0001CA-Aq for 61678@debbugs.gnu.org; Tue, 21 Feb 2023 09:34:12 -0500 Received: by mail-pj1-f53.google.com with SMTP id c23so232220pjo.4 for <61678@debbugs.gnu.org>; Tue, 21 Feb 2023 06:34:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=uicbC1MeizWC/WojYALjsptE3nXCncDYlNHq5EFXybY=; b=gtw+JDaUL7bPlMRn94Q0uLK4gNoubfXHRxOiMsEqXJ5k6RUJu9qCEfn0WKFq4Q3gCi b1Tql23zYYx3g6NwDE0FblvY/KV5IzBtSmcFb7U3uE+L0Az1rxpw9mHF6YgYDbs/5CJM MeO2jMv6Q6W8qmos2lPqFaJJXwO9c1j+8WK5Oj+2ZDleMu5cM7GqPS4PV1XFFKv8r9k+ nXuU5m+jmgnEk78sWhJpbDGZkkJICqZAT7NeeZdq7hHSIR8uQ7xVZDx0BUNhAIi0z837 hHLyhtB9ZXOeQz0+5iE6VESVAeaJ7Twdd9Judmr+C8hZ1mSa/U00B6e1ckx4VK8/trMA vjlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=uicbC1MeizWC/WojYALjsptE3nXCncDYlNHq5EFXybY=; b=THtxkek8F2g9+JzFaF66NA7bkM4xR9YZ5zquJShcmXc6GPWu227250suoSNTWMvP71 KS51AxKUHINPJFY0c6TeEblzXKDyCB7wALpJqictPfZS2BXiNUYIGLYoNCtrQQP9MccU r9ZtGy3qEbYoH+kZAB/Jw97U2eosGmXcMA21WWoWt+l1eCAmGd56AgUJBSn4e2ZDRn6t 7SeiaFH9qOhGnz7m6+ZgeB1dobAE3fwIvwrzvoFcSh1F4GkIsoS8EDPvcQyGlUuB0h+M Fy1v/n2avAZsCgimqx7zfZlG/vir8JgUAqqfIJDRyFqdy7W4s5lJ6f8DgoGiF59j7yDc iRIg== X-Gm-Message-State: AO0yUKUzqHLTWrcMDYDaXUDYcX5rzgEHtQh5/S84EGKvH37k66/U40ha tKP94hZu8me5SbcHdqU4Q/hUdz+AobO8qQ== X-Google-Smtp-Source: AK7set9wQ1HJ+1pn46n37SIIgghsVAAxFVbn3Jq2xluqSopZQLTetRiWtk6Og/cq8mdubLknaQ5CyQ== X-Received: by 2002:a17:902:c408:b0:19a:9984:5590 with SMTP id k8-20020a170902c40800b0019a99845590mr8070200plk.5.1676990045729; Tue, 21 Feb 2023 06:34:05 -0800 (PST) Received: from mac.gemmaro.name ([240f:74:d1f0:1:ba1:e787:c9e:b1dc]) by smtp.gmail.com with ESMTPSA id jb9-20020a170903258900b001994a0f3380sm1182361plb.265.2023.02.21.06.34.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 06:34:05 -0800 (PST) From: gemmaro Date: Tue, 21 Feb 2023 23:33:40 +0900 Message-Id: <475d6cad530869442d8a7372a3d29ddf2cc38eb1.1676987498.git.gemmaro.dev@gmail.com> X-Mailer: git-send-email 2.39.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-Mailman-Approved-At: Tue, 21 Feb 2023 11:45:46 -0500 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676997978; a=rsa-sha256; cv=none; b=c6NjrcdAUOdWi0sDF4D0uKD6U8KOuWNNUYl/OOBORYKX1qJkvSj6lQnckyXb7iglAJW0is bVBmiJ1EB/WqO8BJnXEjDRfe/5uPYJ3NNeWasLYAYVLgI4NSwTDkJ+8ssLczrc7cdcfPwL XammXszyBKVi/xEINaIy7imL9RPqAkYRjIJCzyEVbiCIrzPhNj33riNUxMmUlPwcaPcH4t 1WPT2FMXdDGQ/+H5SugF3hoFjKSoXYh9Or1Qv8u5cju8DK0VfLO6PH2m6d3fwDPIRvMRzQ t/6+TK7PU35adqHTbBUuBx/edhA1C9EUnbqWv9DPiymOglgjn6pN+PKlyW0Oww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gtw+JDaU; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676997978; 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=uicbC1MeizWC/WojYALjsptE3nXCncDYlNHq5EFXybY=; b=WGHcKgglLwg7tXJAA2/7H33Q15yJGKDMUMwMwvHmB2oCIRb3t9Q8sitOwSgl9O30UyWLwo T8kD+78xiJdug12gbJQQ0jUA0ltJs+1KzWZdN++t24L5eEY3uCxbeWBV952LBgcWTmCt4i MZCS9BF92InWdznpWZEGHDW+vMWcqZaFBfb64BYfTpey146/9r+LXrrZL4pgLipyZ5IPZG IFzyA3mJ+ru8m3fD2m5fEpFO3lGqBdErinuE7enDb1Ara5cihZj8llSBpUwxysOn62ssl0 YLaRArU/aXYtr7HrVAYL9+PWKd1+djrWFxQAfL//LAmW272pzb7tekxl26BaIQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gtw+JDaU; 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-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.05 X-Spam-Score: -2.05 X-Migadu-Queue-Id: 5DFB012EAA X-TUID: wqId3rh0DyEb * gnu/packages/sml.scm (smlsharp): New variable. --- gnu/packages/sml.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/sml.scm b/gnu/packages/sml.scm index 368abf6cfa..5509667e03 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,9 +22,13 @@ ;;; 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) @@ -340,3 +345,46 @@ (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 url-fetch) + (uri (string-append + "https://github.com/smlsharp/smlsharp/releases/download/v" + version "/smlsharp-" version ".tar.gz")) + (sha256 + (base32 + "1nv567na798qysyw7bc8aaz0v51f239z0s3w37nzqz4z6qgzni0b")))) + (build-system gnu-build-system) + (arguments + `(#: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 + "Open source functional programming language compatible with with Standard ML") + (description + "SML# is an open source functional programming language and have been developed +by the SML# Delelopment Team. While maintaining compatibility with Standard ML, it +provides practically important features such as interoperability with C and +databases.") + (license license:expat))) -- 2.39.1