From 1035463227f40a8c331b371c624d32c5217ef381 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Wed, 21 Jan 2026 22:21:53 -0300 Subject: [PATCH] gnu: horizon-eda: Migrate to electronics. * gnu/packages/engineering.scm (horizon-eda): Move from here ... * gnu/packages/electronics.scm: ... to here. Use modules (gnu packages backup), (gnu packages networking), (gnu packages pdf). Change-Id: Ib980384fd93d2124c79bd712d8eef25bdfecb30b --- gnu/packages/electronics.scm | 56 +++++++++++++++++++++++++++++++++++- gnu/packages/engineering.scm | 53 +--------------------------------- 2 files changed, 56 insertions(+), 53 deletions(-) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index 73ac94842b7..3c9545f78d2 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -15,7 +15,7 @@ ;;; Copyright © 2022, 2024, 2025 Artyom V. Poptsov ;;; Copyright © 2016 Danny Milosavljevic ;;; Copyright © 2019 Amin Bandali -;;; Copyright © 2020, 2021, 2022, 2023, 2024, 2025 Vinicius Monego +;;; Copyright © 2020-2025 Vinicius Monego ;;; Copyright © 2021 Andrew Miloradovsky ;;; Copyright © 2022 Christian Gelinek ;;; Copyright © 2022 jgart @@ -65,6 +65,7 @@ #:use-module (gnu packages) #:use-module (gnu packages algebra) #:use-module (gnu packages autotools) + #:use-module (gnu packages backup) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages bison) @@ -108,6 +109,8 @@ #:use-module (gnu packages m4) #:use-module (gnu packages maths) #:use-module (gnu packages mpi) + #:use-module (gnu packages networking) + #:use-module (gnu packages pdf) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) @@ -405,6 +408,57 @@ changes into a design, or ensuring that a design refactor preserves correctness in all conditions.") (license license:isc))) +(define-public horizon-eda + (package + (name "horizon-eda") + (version "2.7.0") + ;; TODO: try to unbundle some of the 3rd parties. + ;; We have packages for nlohmann-json, range-v3, catch2 and clipper. + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/horizon-eda/horizon") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1sq1d2x9wq168cz91l2rd93gnlq5scknb45bi1njqqcw3jjjhsk3")))) + (build-system meson-build-system) + (arguments + (list + #:tests? #f ; no tests + #:glib-or-gtk? #t)) + (native-inputs (list cmake-minimal ;; OpenCASCADE is only found by cmake + `(,glib "bin") + gobject-introspection + pkg-config)) + (inputs (list boost + cairomm + cppzmq + curl + glib + glibmm + glm + gsettings-desktop-schemas + gtk+ + gtkmm-3 + libarchive + libgit2-glib + librsvg + libspnav + libzip + opencascade-occt + podofo + sqlite + `(,util-linux "lib") + zeromq)) + (home-page "https://horizon-eda.org/") + (synopsis "Electronic Design Automation package") + (description "Horizon EDA is an Electronic Design Automation package +supporting an integrated end-to-end workflow for printed circuit board design +including parts management and schematic entry.") + (license license:gpl3+))) + (define-public ieee-p1076 (package (name "ieee-p1076") diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index a8ca590e476..775ad16b0f2 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -20,7 +20,7 @@ ;;; Copyright © 2020, 2023 Marius Bakke ;;; Copyright © 2020, 2021, 2025 Ekaitz Zarraga ;;; Copyright © 2020 B. Wilson -;;; Copyright © 2020, 2021, 2022, 2023, 2024, 2025 Vinicius Monego +;;; Copyright © 2020-2025 Vinicius Monego ;;; Copyright © 2020, 2021, 2023 Morgan Smith ;;; Copyright © 2021 qblade ;;; Copyright © 2021 Gerd Heber @@ -1132,57 +1132,6 @@ in the context of per-cpu data. The library offers ABI headers to interface with the kernel and various utilities such as per-cpu counters.") (license (list license:lgpl2.1 license:expat))))) -(define-public horizon-eda - (package - (name "horizon-eda") - (version "2.7.0") - ;; TODO: try to unbundle some of the 3rd parties. - ;; We have packages for nlohmann-json, range-v3, catch2 and clipper. - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/horizon-eda/horizon") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1sq1d2x9wq168cz91l2rd93gnlq5scknb45bi1njqqcw3jjjhsk3")))) - (build-system meson-build-system) - (arguments - (list - #:tests? #f ; no tests - #:glib-or-gtk? #t)) - (native-inputs (list cmake-minimal ;; OpenCASCADE is only found by cmake - `(,glib "bin") - gobject-introspection - pkg-config)) - (inputs (list boost - cairomm - cppzmq - curl - glib - glibmm - glm - gsettings-desktop-schemas - gtk+ - gtkmm-3 - libarchive - libgit2-glib - librsvg - libspnav - libzip - opencascade-occt - podofo - sqlite - `(,util-linux "lib") - zeromq)) - (home-page "https://horizon-eda.org/") - (synopsis "Electronic Design Automation package") - (description "Horizon EDA is an Electronic Design Automation package -supporting an integrated end-to-end workflow for printed circuit board design -including parts management and schematic entry.") - (license license:gpl3+))) - (define-public linsmith (package (name "linsmith")