From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4HnqC9CmIGNegwEAbAwnHQ (envelope-from ) for ; Tue, 13 Sep 2022 17:50:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wPQHDNCmIGOOPwEA9RJhRA (envelope-from ) for ; Tue, 13 Sep 2022 17:50:40 +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 E39B41FAB3 for ; Tue, 13 Sep 2022 17:50:39 +0200 (CEST) Received: from localhost ([::1]:32918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY8BK-0000AF-M0 for larch@yhetil.org; Tue, 13 Sep 2022 11:50:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY8An-00007p-6L for guix-patches@gnu.org; Tue, 13 Sep 2022 11:50:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35625) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oY8Ak-00064i-1u for guix-patches@gnu.org; Tue, 13 Sep 2022 11:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oY8Aj-0006uu-Td for guix-patches@gnu.org; Tue, 13 Sep 2022 11:50:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57774] [PATCH] Add qucs-s. Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Sep 2022 15:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57774 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57774@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166308414226439 (code B ref -1); Tue, 13 Sep 2022 15:50:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Sep 2022 15:49:02 +0000 Received: from localhost ([127.0.0.1]:52538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY89l-0006sC-Hv for submit@debbugs.gnu.org; Tue, 13 Sep 2022 11:49:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:55806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY89j-0006rs-8k for submit@debbugs.gnu.org; Tue, 13 Sep 2022 11:48:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY89j-0007nQ-3V for guix-patches@gnu.org; Tue, 13 Sep 2022 11:48:59 -0400 Received: from knopi.disroot.org ([178.21.23.139]:55734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY89g-0005o7-M1 for guix-patches@gnu.org; Tue, 13 Sep 2022 11:48:58 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 88FC240056 for ; Tue, 13 Sep 2022 17:48:52 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aDqDolka-o4S for ; Tue, 13 Sep 2022 17:48:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1663084131; bh=Ol5CuMYBFWWZwS/TmMc+Y8/T5jV+lnQ/bkNT47mtMug=; h=From:To:Subject:Date; b=UuaP8EhE2yORXVyeEPcryEyfE4EMu66vfsiCFUkzZC9yczGHG+fyIRbO9ApZnUVRI V3SlQ2BvNt1hxMPd24XgP9fU/Jf7YAfN2/tzmvZDnT4BCUIM/bKcNeW25mBfoHRwFK hZyXdRJP7QR/iZoUD+8lvh5YclwIftjngYviUg67UH/4IYkQf33XpY8EfkIORiKrZa 5sYPbjp3UIoXFMpTWJpg1sa3T1d3N+XP3i7Pr2pndKfBVi9vp+XxMBTriRupZwBTun uW02MciIVrIElqaAPwumDIaD+rJkV9CS7XlonX6+YMTT6f9w1t3JTF5yKyQ/PDcrGB fwP96UwqMnWMw== Date: Tue, 13 Sep 2022 11:48:40 -0400 Message-ID: <875yhrgtrb.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=garekdyszel@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Garek Dyszel X-ACL-Warn: , Garek Dyszel via Guix-patches From: Garek Dyszel via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663084240; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=hvYbZ2XJLVzdwra/IfBKxoNMhv3xMZ9dWioCHNgBRUg=; b=YESjO8EZAUovkNLPVlhnQPGFJOgYVNmX6ksZhz6VWPX/aN1j7tdKZaE+LrLBp5ZhGegF2E ots8csuVJRjbyr6mX0z1NMKt/bOMc16iLxZ1IxSu6uNfTKaSTe15vDdaWpzIvQbXsVCjq3 kuMzEBt1ipr9+6iLLZOsf7SNaK5I8cmxfVsiwbifN3kZqLd5ZC4EuH1i5lW+GA/cM52TVF GNeZreHEizyFP3RWu0f+7KB/ltgs2EFJqQm7+ArObhG6BWGilCwCGCPZocQw5LBuzcpro2 gAJLzN7HfblnnY6xjvyVq14prGE7cHbPsmMD09/AwFFC61Nvkwr1UMCI11mU2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663084240; a=rsa-sha256; cv=none; b=ubu7TNBYJ5FgI4xhQpIp+xm1LWqF7WTw34YHNfjmCGF7qQBWNiiaMms40sY7ZGnWYU2yjP LZu9i3J5dG6t9tqClXCiUqsNitbZgx7eHBA148AV6CknOAqoTaerqsQhg8NLaLR19yBFD2 RvPIhM0CYRu+i5qerRi6241b5/q2etHCrFSSzb5WNs0RTQbAjTb2cv74LXRazGHK/C1EiW A0mBFc9v08b94hVCkS2Zcd3hMO6o4qTssCLheTgE9dRpvYALR6xgCL1+ulgf205KL9iIC2 iF69QSuuaiMeAG/5wiSIKt8W52W2F0dDX80exOt5YeF1vLkVSvi8hXMcdJoIfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=UuaP8EhE; dmarc=pass (policy=none) header.from=gnu.org; 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-Spam-Score: -3.01 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=UuaP8EhE; dmarc=pass (policy=none) header.from=gnu.org; 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: E39B41FAB3 X-Spam-Score: -3.01 X-Migadu-Scanner: scn1.migadu.com X-TUID: SC8yyskKmtHf * gnu/packages/engineering.scm (qucs-s): New variable. --- gnu/packages/engineering.scm | 74 ++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index a8b9f1e786..376cb7e8c1 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2006,6 +2006,80 @@ (define-public xyce-parallel ,@(alist-delete "trilinos" (package-inputs xyce-serial)))))) +(define-public qucs-s + (package + (name "qucs-s") + (version "0.0.24") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ra3xdh/qucs_s") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lbkaw0grw9w7d37z5dbhaqi8p57cpf9yp071zp6xrairkgimdx8")))) + (build-system qt-build-system) + (outputs '("out")) + (inputs (list qtbase-5 qtscript qtsvg-5)) + (native-inputs (list qttools-5)) + (propagated-inputs (list ngspice)) + (arguments + `(;; There exists no "tests" target in the Makefile generated by + ;; CMake. + ;; No other tests provided. + #:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'install 'get-ngspice-path + (lambda* (#:key inputs #:allow-other-keys) + ;; Adjust two lines in the ~/.config/qucs/qucs_s.conf + ;; file. + (mkdir-p "etc/xdg/qucs_s") + (with-directory-excursion "etc/xdg/qucs_s" + (invoke "touch" "qucs_s.conf") + ;; Specify where the ngspice executable is located. + (invoke "sed" "-i" + (string-append "1iNgspiceExecutable=/gnu/store/" + (assoc-ref inputs "ngspice") + "/bin/ngspice") "qucs_s.conf") + ;; Set the spice4qucs working directory to + ;; ~/.qucs/spice4qucs. + ;; (The default is /spice4qucs, which is rather + ;; dangerous.) + (invoke "sed" "-i" "2iS4Q_workdir=~/.qucs/spice4qucs" + "qucs_s.conf"))))))) + + (home-page "https://ra3xdh.github.io") + (synopsis "QUCS RF circuit simulator with SPICE") + (description + "Qucs-S is a spin-off of the Qucs cross-platform circuit +simulator. The \"S\" letter indicates SPICE. The purpose of the Qucs-S +subproject is to use free SPICE circuit simulation kernels with the +Qucs GUI. It merges the power of SPICE and the simplicity of the Qucs +GUI. Qucs intentionally uses its own SPICE incompatible simulation +kernel Qucsator. It has advanced RF and AC domain simulation features, +but most of the existing industrial SPICE models are incompatible with +it. Qucs-S is not a simulator by itself, but it requires to use a +simulation backend with it. The schematic document format of Qucs and +Qucs-S are fully compatible. Qucs-S can be used with the following +simulation kernels: +@itemize +@item Ngspice is recommended to use. Ngspice is powerful +mixed-level/mixed-signal circuit simulator. The most of industrial +SPICE models are compatible with Ngspice. It has an excellent +performance for time-domain simulation of switching circuits and +powerful postprocessor. +@item XYCE is a new SPICE-compatible circuit simulator written by +Sandia from the scratch. It supports basic SPICE simulation types and +has an advanced RF simulation features such as harmonic balance +simulation. +@item SpiceOpus is developed by the Faculty of Electrical Engineering +of the Ljubljana University. It is based on the SPICE-3f5 code. +@item Backward compatible with Qucsator. +@end itemize") + (license license:gpl2))) + (define-public freehdl (package (name "freehdl") -- 2.37.2