From a6be6f18f89741d1d9c646d41950d4d6c3d3ab87 Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Fri, 1 Aug 2025 19:18:28 +0200 Subject: [PATCH] gnu: Add route-rnd. * gnu/packages/electronics.scm (route-rnd): New variable. Change-Id: I4ef3bcbf58f31876584b1431fdd3e10bc9e7b799 Signed-off-by: Andreas Enge --- gnu/packages/electronics.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index 22b6e8c69e7bb39bab9c6cde9585fbfe07c2f437..df9f8be91a53132cfe7d91188ab02cf08972fd77 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -953,6 +953,41 @@ netlists from the drawn schematic, allowing the simulation of the circuit.") (home-page "https://xschem.sourceforge.io/stefan/index.html") (license license:gpl2+))) +(define-public route-rnd + (package + (name "route-rnd") + (version "0.9.3") + (source + (origin + (method url-fetch) + (uri (string-append "http://repo.hu/projects/route-rnd/" + "releases/route-rnd-" version ".tar.gz")) + (sha256 + (base32 + "0fy3b48s72lpicyap3y6jr9fyvb2ri42jb0gqxk6s927a278bfhc")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f + #:make-flags #~(list (string-append "PREFIX=" #$output)) + #:phases + #~(modify-phases %standard-phases + (replace 'configure + ;; The configure script doesn't tolerate most of our configure + ;; flags. + (lambda _ + (setenv "CC" #$(cc-for-target)) + (setenv "LIBRND_PREFIX" #$(this-package-input "librnd")) + (invoke "./configure" (string-append "--prefix=" #$output))))))) + (inputs (list librnd)) + (home-page "http://repo.hu/projects/route-rnd/") + (synopsis "Automatic routing for electronics boards") + (description + "@code{Route-rnd} is a generic external autorouter for @acronym{PCB, +Printed Circuit Board} using tEDAx file format, part of the RiNgDove EDA +suite.") + (license license:gpl2+))) + (define-public sch-rnd (package (name "sch-rnd")