From patchwork Fri Mar 15 21:31:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artyom Bologov X-Patchwork-Id: 61849 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 9C02327BBEB; Fri, 15 Mar 2024 21:35:54 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED,URI_NOVOWEL 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 D874427BBE9 for ; Fri, 15 Mar 2024 21:35:48 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlFD6-00049L-Dz; Fri, 15 Mar 2024 17:35:28 -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 1rlFD4-00048r-A2 for guix-patches@gnu.org; Fri, 15 Mar 2024 17:35:26 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rlFD3-0007N9-SR for guix-patches@gnu.org; Fri, 15 Mar 2024 17:35:26 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rlFDe-0000PW-41 for guix-patches@gnu.org; Fri, 15 Mar 2024 17:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69820] [PATCH] gnu: Add guile-gsl. Resent-From: Artyom Bologov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 15 Mar 2024 21:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69820 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69820@debbugs.gnu.org X-Debbugs-Original-To: Guix patches Received: via spool by submit@debbugs.gnu.org id=B.17105385461549 (code B ref -1); Fri, 15 Mar 2024 21:36:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Mar 2024 21:35:46 +0000 Received: from localhost ([127.0.0.1]:53831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlFDK-0000Op-3Z for submit@debbugs.gnu.org; Fri, 15 Mar 2024 17:35:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:47354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rlFDD-0000OV-O6 for submit@debbugs.gnu.org; Fri, 15 Mar 2024 17:35:40 -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 1rlFCc-00046u-Kr for guix-patches@gnu.org; Fri, 15 Mar 2024 17:34:58 -0400 Received: from mta-07-3.privateemail.com ([198.54.118.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlFCX-0006yu-BA for guix-patches@gnu.org; Fri, 15 Mar 2024 17:34:58 -0400 Received: from mta-07.privateemail.com (localhost [127.0.0.1]) by mta-07.privateemail.com (Postfix) with ESMTP id B13A318000BE for ; Fri, 15 Mar 2024 17:34:41 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aartaka.me; s=default; t=1710538481; bh=kAn73/MBjagO0KRVGOhNknIhhJ5jLbdoPIDOBnb7obQ=; h=From:To:Subject:Date:From; b=v5NeqadZoKa3fMuEcAZHJ/30DtJLJiDsQb/87WMgpjdJ4LheBzJL7I5sUFuAya57J TgjbE8suhLI4wCMtGvTk/NSegZYNEq5Qp28wUUBLqP3tHPvXn+84qtiQyGLqzbIxrZ TmsuKrBljoG27FtXBnX087vXm5iuiHMGGE2fsuz68rcP8gBgxeeKWNPO37aV6BhehY BbcxCFGOyUhZRUWfG0PoRRQ+2OGbJCYAwTLEpTP7CybaGwKyj0ahOivqIWGjR7AbQS +mByVs6yAWDe2FgO4F8gBDoGZy6p5QyLt2OCJf6/LZwD6FvVy0un7C9LJlpe0xA8Z5 LqurgvFoT1PAw== Received: from paranoidal (unknown [185.167.217.34]) by mta-07.privateemail.com (Postfix) with ESMTPA for ; Fri, 15 Mar 2024 17:34:40 -0400 (EDT) User-agent: mu4e 1.10.8; emacs 29.1 From: Artyom Bologov Date: Sat, 16 Mar 2024 01:31:53 +0400 Message-ID: <87jzm3b2nr.fsf@aartaka.me> MIME-Version: 1.0 X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=198.54.118.214; envelope-from=mail@aartaka.me; helo=MTA-07-3.privateemail.com X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URI_NOVOWEL=0.5 autolearn=no 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: , 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 Hi y'all, This is another shot at packaging Guile GSL bindings. See the attached patch. The related bugs 69443 and 69737 are resolved then. Thanks, --- Artyom. From 0185af4d2c467a45de568d1193f76cfcf23e8bab Mon Sep 17 00:00:00 2001 From: Artyom Bologov Date: Sat, 16 Mar 2024 01:11:09 +0400 Subject: [PATCH] gnu: Add guile-gsl. * gnu/packages/guile-xyz.scm (guile-gsl): New variable. --- gnu/packages/guile-xyz.scm | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 9d683199ac..3c85c35b45 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -1438,6 +1438,46 @@ (define-public guile-algorithms (home-page "https://guile-algorithms.lajszczak.dev/") (license license:gpl3+))) +(define-public guile-gsl + (let ((commit "739a0ddcf00fdf4bdd409e6dd75de23e01aceded") + (revision "0")) + (package + (name "guile-gsl") + (version (git-version "0.0.1" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aartaka/guile-gsl") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0x0z5xx6jx5zhjy83zi7l9mzi65v58wl2khf11q5d2vf4hya16bb")))) + (build-system guile-build-system) + (arguments + (list #:source-directory "modules" + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'substitute-gsl-so + (lambda _ + (let ((gsl (string-append #$(this-package-input "gsl") + "/lib/libgsl.so")) + (gslcblas (string-append #$(this-package-input "gsl") + "/lib/libgslcblas.so"))) + (substitute* '("modules/gsl/core.scm") + (("libgsl.so") + gsl) + (("libgslcblas.so") + gslcblas)) + #t)))))) + (native-inputs (list guile-3.0)) + (inputs (list guile-3.0 gsl)) + (home-page "https://github.com/aartaka/guile-gsl") + (synopsis "Bindings for GNU Scientific library.") + (description "Scheme wrapper around @code{libgsl.so}. +Implements vector, matrix, and BLAS operations.") + (license license:gpl3+)))) + (define-public guile-aws (let ((commit "f32bea12333e1054b97ab50e58a72636edabb5b7") (revision "1")) -- 2.41.0