From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KA52IYvYYGVvigAAG6o9tA:P1 (envelope-from ) for ; Fri, 24 Nov 2023 18:08:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KA52IYvYYGVvigAAG6o9tA (envelope-from ) for ; Fri, 24 Nov 2023 18:08:27 +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 683C15CA27 for ; Fri, 24 Nov 2023 18:08:27 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=aJa64Ivg; 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"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700845707; 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=pocBYlJiwtBmxCZY2oTefLVf69Ii2r7888ON4BGihbA=; b=Cx9cpkZ4PXqrsQ/Z2vw8rtLcx7DqcLH3AJK38eCbpMOryiw++rOCeXFbnP4UVdq/kTrk1Z KvoRF+nr9D4nU3gEkSSVg5LpY4hFkrbIoAB2prbN2Tp0eLQyztcx25Atjz0S/QSp91gFM+ EX/UyJ9RH4K9aNEXvDTUU1dbq2C55VRzbV1tw/MQeaAlC/wRtZy9O/+GXiCUM1rp+XdxRe NGvhlc0Rf6sZOvYrWTpVNzU2BIevbSVrlTFO/Kw3Tik7wXycnrL3IHGm/1RtiBDLclmFwN Ej+/pTPt7EcejuxCoGBg83K3g2+rurC7okScd6CNDGy5DHXJdG38X7/M+Hp87g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=aJa64Ivg; 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"; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700845707; a=rsa-sha256; cv=none; b=mKjB8BXPEd9UJ1DHIJHH1EAYVGt8TFyFKJ76fclIYu5qiLKYX/v+KBWNuPGXtwhUuRLjn5 Jya2W6BAFsK/7/gGCi5ETZ7Bpwd5REkrHBHgIyw/+0IpuGWZqsjZ9agHEqHVzErPSoBGBS 5tuBAI+yLYt6ZmkVtD9MxYUhM/TI/x3dbLQ/klA4u4BTtXXsS13pDJmN0zQoJWJFNvel53 +nBHrBDPfWtcGD5qHJOTkVDXfIQOKYkA16BoZ+I1S4kHNr7FfmB8n+4jST5+qDYTGsGz4J cE4+KqEFhIQ8IOzebfTdLTiobzFJSBCoUkHRrDoogV+mt2uQQNLI4hKcc+J+HA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6Zew-0001S2-Hs; Fri, 24 Nov 2023 12:08:06 -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 1r6Zer-0001Im-Iy for guix-patches@gnu.org; Fri, 24 Nov 2023 12:08:01 -0500 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 1r6Zeq-0005lE-J9 for guix-patches@gnu.org; Fri, 24 Nov 2023 12:08:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r6Zev-0004i2-4k for guix-patches@gnu.org; Fri, 24 Nov 2023 12:08:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67428] [PATCH v2 09/12] gnu: Add cl-magicl Resent-From: Michal Atlas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Nov 2023 17:08:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67428 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67428@debbugs.gnu.org Cc: Michal Atlas Received: via spool by 67428-submit@debbugs.gnu.org id=B67428.170084567218012 (code B ref 67428); Fri, 24 Nov 2023 17:08:05 +0000 Received: (at 67428) by debbugs.gnu.org; 24 Nov 2023 17:07:52 +0000 Received: from localhost ([127.0.0.1]:37115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6Zei-0004gM-9W for submit@debbugs.gnu.org; Fri, 24 Nov 2023 12:07:52 -0500 Received: from mout01.posteo.de ([185.67.36.65]:35017) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6ZeX-0004eV-7j for 67428@debbugs.gnu.org; Fri, 24 Nov 2023 12:07:43 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 09B89240028 for <67428@debbugs.gnu.org>; Fri, 24 Nov 2023 18:07:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1700845651; bh=YXSQgUvmUNaTsJttpuJiGTv463y/i0RbVKJpbM5ZCsY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=aJa64Ivgrvaj0ySVXFof+GWsQBJHhhqL8PYDPQczzTsQMt4zFLF7XyVeE3A7mqPMF Ml20TOuWT+tpodSVvNVp9OeIp9HntI/fbKUE8ss1WJEDipTQso+kOXKljVM7qt3k7K /+BFk1FRfI+M5Bn8GyJiIKYSZ3NC+W2hh6z5oJlK8T4ckkYdz1dkk6FLVbXLtMlF0r 7ZrPIoaOLKtLeKy3cPM+Kjmqd6TfPT4UPTGdVbY+I6dn4bayaHnrBKF5MoE+yMwvwI lyWp/9QMNXx/BILr7eKt5TLrrXKYKanU+eY404Wpu54/LZ89yVwn1PLWSZf8VniGr6 M7w/rZ3dwdvCw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4ScLyB50BVz6tm4; Fri, 24 Nov 2023 18:07:30 +0100 (CET) From: Michal Atlas Date: Fri, 24 Nov 2023 17:07:14 +0000 Message-ID: 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.68 X-Spam-Score: 2.68 X-Migadu-Queue-Id: 683C15CA27 X-Migadu-Scanner: mx13.migadu.com X-TUID: u1BUZ5uGHNaQ * gnu/packages/quantum.scm: New file. * gnu/packages/quantum.scm: (sbcl-magicl, cl-magicl): New variables.. This package requires commencement, which already depends on lisp-xyz in a way that breaks if they're mutually used, this library is mainly the dependency of QVM (Quil Quantum Virtual Machine), so I moved it into this separate file. Change-Id: I4f1d5e6afe3a764c90953d2ee9b21bf3a1f90b26 --- gnu/packages/quantum.scm | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 gnu/packages/quantum.scm diff --git a/gnu/packages/quantum.scm b/gnu/packages/quantum.scm new file mode 100644 index 0000000000..3663e386ea --- /dev/null +++ b/gnu/packages/quantum.scm @@ -0,0 +1,54 @@ +(define-module (gnu packages quantum) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages commencement) + #:use-module (gnu packages lisp-check) + #:use-module (gnu packages lisp-xyz) + #:use-module (gnu packages maths) + #:use-module (guix build-system asdf) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix packages)) + +(define-public sbcl-magicl + (package + (name "sbcl-magicl") + (version "0.9.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/quil-lang/magicl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0x9p55qin399jhr5md88nij8fv78b64xjhww7ys364pkjnx8ak9v")))) + (build-system asdf-build-system/sbcl) + (inputs (list sbcl-alexandria + sbcl-abstract-classes + sbcl-policy-cond + sbcl-interface + sbcl-static-vectors + sbcl-trivial-garbage + lapack + gfortran-toolchain + sbcl-fiasco)) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((lapack (assoc-ref inputs "lapack"))) + (substitute* "src/extensions/blas/load-libs.lisp" + (("libblas.so") + (string-append lapack "/lib/libblas.so"))) + (substitute* "src/extensions/lapack/load-libs.lisp" + (("liblapack.so") + (string-append lapack "/lib/liblapack.so"))))))))) + (synopsis "Matrix Algebra proGrams In Common Lisp") + (description "Matrix Algebra proGrams In Common Lisp by Rigetti Computing. +(née FLAIL: Finally, Linear Algebra In Lisp!)") + (home-page "https://github.com/quil-lang/magicl") + (license license:asl2.0))) + +(define-public cl-magicl + (sbcl-package->cl-source-package sbcl-magicl)) -- 2.41.0