From patchwork Mon Feb 24 11:13:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cayetano Santos X-Patchwork-Id: 39107 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 6B24427BBE9; Mon, 24 Feb 2025 11:14:34 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED 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 EAB3A27BBE2 for ; Mon, 24 Feb 2025 11:14:31 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tmWPZ-0005XH-NY; Mon, 24 Feb 2025 06:14:10 -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 1tmWPW-0005Ws-5t for guix-patches@gnu.org; Mon, 24 Feb 2025 06:14:07 -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 1tmWPU-0000j6-2r for guix-patches@gnu.org; Mon, 24 Feb 2025 06:14:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=CV4r0S0w4E/nzs64Y2oYXe34ddp32PRWPM8FavUAgd4=; b=EsCBYjq/6ONCSfbqZfVE3+IjsXOyxHNGOvZl5iOZFOQNjPviSak0RzrgaxNmDdVotHjzO0o7FMCktb7QbsdUoEsPTFFCXfepj7lJB5qdQ9y4RnG/DSJH8A42Yxy9CJ4AI9MVBVH/B0ZenTxilSBEgLpPu2AbsjeSSraxpOGh5q8Au9NUJWqvAHBsTpnzy/TkNG24IowadVpWHZqjZ+ksYkm2YObC5BwKPmPZpVHVXjhPh+SQYHmfjWklGwJLp1rK+T83hhlINqPJUqbQnf1rUcQP4Jc775EO/7Q/F3Y3dsYeeXQeNVAKja9OLAAvknMy9dt9k6Bw+H87Rxt8WqB45Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tmWPS-00025l-AW; Mon, 24 Feb 2025 06:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76207] [PATCH v2] gnu: Add uhdm. References: In-Reply-To: Resent-From: Cayetano Santos Original-Sender: "Debbugs-submit" Resent-CC: csantosb@inventati.org, maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Mon, 24 Feb 2025 11:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76207 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76207@debbugs.gnu.org Cc: Cayetano Santos , Cayetano Santos , Maxim Cournoyer X-Debbugs-Original-Xcc: Cayetano Santos , Maxim Cournoyer Received: via spool by 76207-submit@debbugs.gnu.org id=B76207.17403955997979 (code B ref 76207); Mon, 24 Feb 2025 11:14:02 +0000 Received: (at 76207) by debbugs.gnu.org; 24 Feb 2025 11:13:19 +0000 Received: from localhost ([127.0.0.1]:38693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tmWOl-00024b-0r for submit@debbugs.gnu.org; Mon, 24 Feb 2025 06:13:19 -0500 Received: from devianza.investici.org ([2c0f:f930:0:4::108]:60395) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tmWOh-00024K-AC for 76207@debbugs.gnu.org; Mon, 24 Feb 2025 06:13:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1740395591; bh=CV4r0S0w4E/nzs64Y2oYXe34ddp32PRWPM8FavUAgd4=; h=From:To:Cc:Subject:Date:From; b=DnMC/GSS+iMFV39UbnlHgWWWOWzhilhu1H8+4xvhAZblw6msYeEygcQfzwnHxhZMR bArBhMoIP1vU5pwqi+03ApzjTe+0KFp1ePXS/64PkUwJEPQCel7YWL6F+9Hg9vb3c4 BDIZipLbKiJcBp851rqSNj1BmmIpnNOcVxxvq/jY= Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4Z1dPz3Lkpz6v96; Mon, 24 Feb 2025 11:13:11 +0000 (UTC) Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4Z1dPz13c0z6v61; Mon, 24 Feb 2025 11:13:11 +0000 (UTC) Date: Mon, 24 Feb 2025 12:13:38 +0100 Message-ID: <791b038347043ba36e60f6cd797464e408ad448b.1740395618.git.csantosb@inventati.org> X-Mailer: git-send-email 2.48.1 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: , Reply-to: Cayetano Santos X-ACL-Warn: , Cayetano Santos via Guix-patches X-Patchwork-Original-From: Cayetano Santos via Guix-patches via From: Cayetano Santos 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/electronics.scm (uhdm): New variable. Change-Id: I85438daefa41fae999500f19b6d0c2e4035d57a9 --- gnu/packages/electronics.scm | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) base-commit: c4fcf8fb627c9ea54a4a639a81766e5df3973fdc -- 2.48.1 diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index df0238c348..93e37cf9ee 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -38,6 +38,7 @@ (define-module (gnu packages electronics) #:use-module (gnu packages boost) #:use-module (gnu packages c) #:use-module (gnu packages check) + #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages documentation) #:use-module (gnu packages embedded) @@ -52,6 +53,10 @@ (define-module (gnu packages electronics) #:use-module (gnu packages m4) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages serialization) + #:use-module (gnu packages swig) + #:use-module (gnu packages tls) #:use-module (gnu packages qt) #:use-module (gnu packages sdl) #:use-module (gnu packages sqlite) @@ -522,3 +527,42 @@ (define-public minipro Additionally your user must be member of the @code{plugdev} group.") (home-page "https://gitlab.com/DavidGriffith/minipro") (license license:gpl3+)))) + +(define-public uhdm + (package + (name "uhdm") + (version "1.84") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/chipsalliance/UHDM/") + (commit (string-append "v" version)) + ;; avoid submodules, and use guix packages capnproto and + ;; googletest instead + (recursive? #f))) + (file-name (git-file-name name version)) + (sha256 + (base32 "06i06wfyymhvmpnw79lgb84l9w9cyydvnr7n3bgmgf8a77jbxk2y")))) + (build-system gnu-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + ;; there is no configure stage, as for INSTALL.md + (delete 'configure)) + #:test-target "test" + #:make-flags + #~(list + "ADDITIONAL_CMAKE_OPTIONS=-DUHDM_USE_HOST_CAPNP=On -DUHDM_USE_HOST_GTEST=On" + (string-append "PREFIX=" + #$output)))) + (native-inputs (list cmake-minimal googletest pkg-config python-wrapper + swig)) + (inputs (list capnproto openssl python-orderedmultidict zlib)) + (home-page "https://github.com/chipsalliance/UHDM/") + (synopsis "Universal Hardware Data Model") + (description + "UHDM is a complete modeling of the IEEE SystemVerilog Object Model with +VPI Interface, Elaborator, Serialization, Visitor and Listener.") + (license license:asl2.0)))