2017-06-23 23:05:12 +02:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2017-09-29 12:36:20 +02:00
|
|
|
|
;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
|
2021-03-09 14:48:16 +01:00
|
|
|
|
;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
2019-11-01 15:11:01 +01:00
|
|
|
|
;;; Copyright © 2019 Clément Lassieur <clement@lassieur.org>
|
2021-01-10 13:05:03 +01:00
|
|
|
|
;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
|
2021-02-16 20:09:29 +01:00
|
|
|
|
;;; Copyright © 2021 Leo Famulari <leo@famulari.name>
|
2022-01-29 04:27:06 +01:00
|
|
|
|
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2017-06-23 23:05:12 +02:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages electronics)
|
|
|
|
|
#:use-module (guix download)
|
2022-01-29 04:27:06 +01:00
|
|
|
|
#:use-module (guix gexp)
|
2022-01-21 10:28:41 +01:00
|
|
|
|
#:use-module (guix git-download)
|
2017-06-23 23:05:12 +02:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2022-01-29 04:27:06 +01:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix utils)
|
2017-06-23 23:05:12 +02:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2017-06-23 23:05:17 +02:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2017-06-23 23:05:13 +02:00
|
|
|
|
#:use-module (gnu packages)
|
2021-02-16 20:10:33 +01:00
|
|
|
|
#:use-module (gnu packages algebra)
|
2022-01-15 23:01:31 +01:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2019-11-01 15:11:01 +01:00
|
|
|
|
#:use-module (gnu packages base)
|
|
|
|
|
#:use-module (gnu packages bash)
|
2017-06-23 23:05:17 +02:00
|
|
|
|
#:use-module (gnu packages boost)
|
2022-01-29 04:27:06 +01:00
|
|
|
|
#:use-module (gnu packages c)
|
2017-06-23 23:05:13 +02:00
|
|
|
|
#:use-module (gnu packages check)
|
2017-06-23 23:05:15 +02:00
|
|
|
|
#:use-module (gnu packages compression)
|
2017-06-23 23:05:13 +02:00
|
|
|
|
#:use-module (gnu packages documentation)
|
2020-12-14 19:06:44 +01:00
|
|
|
|
#:use-module (gnu packages embedded)
|
2022-01-29 04:27:06 +01:00
|
|
|
|
#:use-module (gnu packages fontutils)
|
2019-11-01 15:11:01 +01:00
|
|
|
|
#:use-module (gnu packages gawk)
|
2022-01-29 04:27:06 +01:00
|
|
|
|
#:use-module (gnu packages gl)
|
2017-06-23 23:05:13 +02:00
|
|
|
|
#:use-module (gnu packages glib)
|
|
|
|
|
#:use-module (gnu packages graphviz)
|
2021-02-16 20:10:33 +01:00
|
|
|
|
#:use-module (gnu packages gtk)
|
2017-06-23 23:05:15 +02:00
|
|
|
|
#:use-module (gnu packages libftdi)
|
|
|
|
|
#:use-module (gnu packages libusb)
|
2021-02-16 20:10:33 +01:00
|
|
|
|
#:use-module (gnu packages linux)
|
2021-04-20 11:08:30 +02:00
|
|
|
|
#:use-module (gnu packages m4)
|
2017-06-23 23:05:13 +02:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2017-06-23 23:05:14 +02:00
|
|
|
|
#:use-module (gnu packages python)
|
2022-01-29 04:27:06 +01:00
|
|
|
|
#:use-module (gnu packages qt)
|
|
|
|
|
#:use-module (gnu packages sdl)
|
|
|
|
|
#:use-module (gnu packages sqlite)
|
2022-03-21 19:19:29 +01:00
|
|
|
|
#:use-module (gnu packages stb)
|
|
|
|
|
#:use-module (gnu packages toolkits))
|
2017-06-23 23:05:12 +02:00
|
|
|
|
|
|
|
|
|
(define-public libserialport
|
|
|
|
|
(package
|
|
|
|
|
(name "libserialport")
|
|
|
|
|
(version "0.1.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://sigrok.org/download/source/libserialport/libserialport-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"17ajlwgvyyrap8z7f16zcs59pksvncwbmd3mzf98wj7zqgczjaja"))))
|
|
|
|
|
(build-system gnu-build-system)
|
2018-04-16 19:08:34 +02:00
|
|
|
|
(home-page "https://sigrok.org/wiki/Libserialport")
|
2017-06-23 23:05:12 +02:00
|
|
|
|
(synopsis "Library for using serial ports")
|
|
|
|
|
(description "Libserialport is a minimal shared library written in C that is intended
|
|
|
|
|
to take care of the OS-specific details when writing software that uses serial ports.")
|
|
|
|
|
(license license:lgpl3+)))
|
2017-06-23 23:05:13 +02:00
|
|
|
|
|
|
|
|
|
(define-public libsigrokdecode
|
|
|
|
|
(package
|
|
|
|
|
(name "libsigrokdecode")
|
2020-01-01 21:17:34 +01:00
|
|
|
|
(version "0.5.3")
|
2017-06-23 23:05:13 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://sigrok.org/download/source/libsigrokdecode/libsigrokdecode-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-01-15 23:01:31 +01:00
|
|
|
|
"1h1zi1kpsgf6j2z8j8hjpv1q7n49i3fhqjn8i178rka3cym18265"))
|
|
|
|
|
(patches
|
|
|
|
|
(search-patches "libsigrokdecode-python3.9-fix.patch"))))
|
2017-06-23 23:05:13 +02:00
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2022-01-15 23:01:31 +01:00
|
|
|
|
(replace 'bootstrap
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "autoconf")
|
|
|
|
|
(invoke "aclocal")
|
|
|
|
|
(invoke "automake" "-ac")))
|
2017-06-23 23:05:13 +02:00
|
|
|
|
(add-after 'build 'build-doc
|
|
|
|
|
(lambda _
|
2018-04-16 18:42:46 +02:00
|
|
|
|
(invoke "doxygen")
|
|
|
|
|
#t))
|
2017-06-23 23:05:13 +02:00
|
|
|
|
(add-after 'install 'install-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(copy-recursively "doxy/html-api"
|
|
|
|
|
(string-append (assoc-ref outputs "doc")
|
|
|
|
|
"/share/doc/libsigrokdecode"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
2022-07-02 06:07:52 +02:00
|
|
|
|
(list check doxygen graphviz pkg-config automake autoconf))
|
2017-06-23 23:05:13 +02:00
|
|
|
|
;; libsigrokdecode.pc lists "python" in Requires.private, and "glib" in Requires.
|
|
|
|
|
(propagated-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list glib python))
|
2017-06-23 23:05:13 +02:00
|
|
|
|
(build-system gnu-build-system)
|
2018-04-16 18:43:42 +02:00
|
|
|
|
(home-page "https://www.sigrok.org/wiki/Libsigrokdecode")
|
2017-06-23 23:05:13 +02:00
|
|
|
|
(synopsis "Library providing (streaming) protocol decoding functionality")
|
|
|
|
|
(description "Libsigrokdecode is a shared library written in C, which provides
|
|
|
|
|
(streaming) protocol decoding functionality.")
|
|
|
|
|
(license license:gpl3+)))
|
2017-06-23 23:05:14 +02:00
|
|
|
|
|
|
|
|
|
(define-public sigrok-firmware-fx2lafw
|
|
|
|
|
(package
|
|
|
|
|
(name "sigrok-firmware-fx2lafw")
|
2020-01-01 21:27:31 +01:00
|
|
|
|
(version "0.1.7")
|
2017-06-23 23:05:14 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://sigrok.org/download/source/sigrok-firmware-fx2lafw/"
|
|
|
|
|
"sigrok-firmware-fx2lafw-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-01-01 21:27:31 +01:00
|
|
|
|
"0fyfd82mvrcf55v5a3afq1mh1kfswk4c37qrbln6x92jm3b41x53"))))
|
2019-11-01 15:11:01 +01:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:implicit-inputs? #f))
|
2017-06-23 23:05:14 +02:00
|
|
|
|
(native-inputs
|
2019-11-01 15:11:01 +01:00
|
|
|
|
`(("awk" ,gawk)
|
|
|
|
|
("bash" ,bash)
|
|
|
|
|
("coreutils" ,coreutils)
|
|
|
|
|
("grep" ,grep)
|
|
|
|
|
("gzip" ,gzip)
|
|
|
|
|
("make" ,gnu-make)
|
|
|
|
|
("sdcc" ,sdcc)
|
|
|
|
|
("sed" ,sed)
|
|
|
|
|
("tar" ,tar)))
|
2017-06-23 23:05:14 +02:00
|
|
|
|
(build-system gnu-build-system)
|
2018-04-16 18:43:42 +02:00
|
|
|
|
(home-page "https://www.sigrok.org/wiki/Fx2lafw")
|
2017-06-23 23:05:14 +02:00
|
|
|
|
(synopsis "Firmware for Cypress FX2 chips")
|
|
|
|
|
(description "Fx2lafw is free firmware for Cypress FX2 chips which makes them usable
|
|
|
|
|
as simple logic analyzer and/or oscilloscope hardware.")
|
|
|
|
|
(license license:gpl2+)))
|
2017-06-23 23:05:15 +02:00
|
|
|
|
|
|
|
|
|
(define-public libsigrok
|
2022-01-21 10:28:41 +01:00
|
|
|
|
(let ((commit "a7e919a3a6b7fd511acbe1a280536b76c70c28d2")
|
|
|
|
|
(revision "1"))
|
|
|
|
|
(package
|
|
|
|
|
(name "libsigrok")
|
|
|
|
|
(version (git-version "0.5.2" revision commit))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "git://sigrok.org/libsigrok")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0km3fyv5s2byrm4zpbss2527ynhw4nb67imnbawwic2a6zh9jiyc"))
|
|
|
|
|
(file-name (git-file-name name version))))
|
|
|
|
|
(outputs '("out" "doc"))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; tests need USB access
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'change-udev-group
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* (find-files "contrib" "\\.rules$")
|
|
|
|
|
(("plugdev") "dialout"))))
|
|
|
|
|
(add-after 'build 'build-doc
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "doxygen")))
|
|
|
|
|
(add-after 'install 'install-doc
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(copy-recursively "doxy/html-api"
|
|
|
|
|
(string-append (assoc-ref outputs "doc")
|
|
|
|
|
"/share/doc/libsigrok"))))
|
|
|
|
|
(add-after 'install-doc 'install-udev-rules
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(rules (string-append out "/lib/udev/rules.d/")))
|
|
|
|
|
(for-each (lambda (file)
|
|
|
|
|
(install-file file rules))
|
|
|
|
|
(find-files "contrib" "\\.rules$")))))
|
|
|
|
|
(add-after 'install-udev-rules 'install-fw
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((fx2lafw (assoc-ref inputs "sigrok-firmware-fx2lafw"))
|
|
|
|
|
(out (assoc-ref outputs "out"))
|
|
|
|
|
(dir-suffix "/share/sigrok-firmware/")
|
|
|
|
|
(input-dir (string-append fx2lafw dir-suffix))
|
|
|
|
|
(output-dir (string-append out dir-suffix)))
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (file)
|
|
|
|
|
(install-file file output-dir))
|
|
|
|
|
(find-files input-dir "."))))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
(list autoconf automake doxygen graphviz libtool
|
|
|
|
|
sigrok-firmware-fx2lafw pkg-config))
|
|
|
|
|
(inputs
|
|
|
|
|
(list python zlib))
|
|
|
|
|
;; libsigrokcxx.pc lists "glibmm" in Requires libsigrok.pc lists
|
|
|
|
|
;; "libserialport", "libusb", "libftdi" and "libzip" in Requires.private
|
|
|
|
|
;; and "glib" in Requires
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list glib
|
|
|
|
|
glibmm-2.64
|
|
|
|
|
libserialport
|
|
|
|
|
libusb
|
|
|
|
|
libftdi
|
|
|
|
|
libzip))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(home-page "https://www.sigrok.org/wiki/Libsigrok")
|
|
|
|
|
(synopsis "Basic hardware access drivers for logic analyzers")
|
|
|
|
|
(description "@code{libsigrok} is a shared library written in C which
|
|
|
|
|
provides the basic hardware access drivers for logic analyzers and other
|
|
|
|
|
supported devices, as well as input/output file format support.")
|
|
|
|
|
(license license:gpl3+))))
|
2017-06-23 23:05:16 +02:00
|
|
|
|
|
|
|
|
|
(define-public sigrok-cli
|
|
|
|
|
(package
|
|
|
|
|
(name "sigrok-cli")
|
2021-03-09 14:48:16 +01:00
|
|
|
|
(version "0.7.2")
|
2017-06-23 23:05:16 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://sigrok.org/download/source/sigrok-cli/sigrok-cli-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-03-09 14:48:16 +01:00
|
|
|
|
"1f0a2k8qdcin0pqiqq5ni4khzsnv61l21v1dfdjzayw96qzl9l3i"))))
|
2017-06-23 23:05:16 +02:00
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list pkg-config))
|
2017-06-23 23:05:16 +02:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list glib libsigrok libsigrokdecode))
|
2017-06-23 23:05:16 +02:00
|
|
|
|
(build-system gnu-build-system)
|
2018-04-16 18:43:42 +02:00
|
|
|
|
(home-page "https://sigrok.org/wiki/Sigrok-cli")
|
2017-06-23 23:05:16 +02:00
|
|
|
|
(synopsis "Command-line frontend for sigrok")
|
|
|
|
|
(description "Sigrok-cli is a command-line frontend for sigrok.")
|
|
|
|
|
(license license:gpl3+)))
|
2017-06-23 23:05:17 +02:00
|
|
|
|
|
2022-01-29 04:27:06 +01:00
|
|
|
|
(define-public openboardview
|
|
|
|
|
(package
|
|
|
|
|
(name "openboardview")
|
2022-03-21 19:03:02 +01:00
|
|
|
|
(version "8.95.2")
|
2022-01-29 04:27:06 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/OpenBoardView/OpenBoardView")
|
2022-03-28 02:47:57 +02:00
|
|
|
|
(commit version)))
|
2022-01-29 04:27:06 +01:00
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(modules '((ice-9 ftw)
|
|
|
|
|
(srfi srfi-26)
|
|
|
|
|
(guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(with-directory-excursion "src"
|
2022-03-21 19:19:29 +01:00
|
|
|
|
(define keep (list "." ".." "openboardview"))
|
2022-01-29 04:27:06 +01:00
|
|
|
|
(for-each (lambda (f)
|
|
|
|
|
(when (eq? 'directory (stat:type (lstat f)))
|
|
|
|
|
(delete-file-recursively f)))
|
|
|
|
|
(scandir "." (negate (cut member <> keep))))))
|
|
|
|
|
(patches
|
2022-03-21 19:19:29 +01:00
|
|
|
|
(search-patches "openboardview-use-system-imgui.patch"
|
|
|
|
|
"openboardview-use-system-utf8.patch"))
|
2022-01-29 04:27:06 +01:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-03-21 19:03:02 +01:00
|
|
|
|
"1n2yfi8wpky0y231kq2zdgwn7f7kff8m53m904hxi5ppmwhx1d6q"))))
|
2022-01-29 04:27:06 +01:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list
|
|
|
|
|
#:tests? #f ;no test suite
|
|
|
|
|
#:imported-modules `((guix build glib-or-gtk-build-system)
|
|
|
|
|
,@%cmake-build-system-modules)
|
|
|
|
|
#:modules '((guix build cmake-build-system)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
((guix build glib-or-gtk-build-system) #:prefix gtk:))
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'configure-glad
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "src/CMakeLists.txt"
|
|
|
|
|
(("add_subdirectory\\(glad\\)")
|
|
|
|
|
(string-append
|
|
|
|
|
;; Configure Glad to use static Khronos XML specifications
|
|
|
|
|
;; instead of attempting to fetch them from the Internet.
|
|
|
|
|
"option(GLAD_REPRODUCIBLE \"Reproducible build\" ON)\n"
|
|
|
|
|
;; Use the CMake files from our glad package.
|
|
|
|
|
"add_subdirectory("
|
|
|
|
|
(search-input-directory inputs "share/glad") ;source_dir
|
|
|
|
|
" src/glad)\n"))))) ;binary dir
|
|
|
|
|
(add-before 'configure 'fix-utf8-include-directive
|
|
|
|
|
;; Our utf8-h package makes the header available as "utf8.h"
|
|
|
|
|
;; directly rather than "utf8/utf8.h".
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* '("src/openboardview/FileFormats/BRDFile.cpp"
|
|
|
|
|
"src/openboardview/BoardView.cpp")
|
|
|
|
|
(("utf8/utf8.h") "utf8.h"))))
|
|
|
|
|
(add-before 'configure 'dynamically-load-gtk-via-absolute-path
|
|
|
|
|
;; The GTK library is not linked thus not present in the RUNPATH of
|
|
|
|
|
;; the produced binary; the absolute path of the libraries must to
|
|
|
|
|
;; the dynamic loader otherwise they aren't found.
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "src/openboardview/unix.cpp"
|
|
|
|
|
(("libgtk-3.so")
|
|
|
|
|
(search-input-file inputs "lib/libgtk-3.so")))))
|
|
|
|
|
;; Add the two extra phases from `glib-or-gtk-build-system'.
|
|
|
|
|
(add-after 'install 'glib-or-gtk-compile-schemas
|
|
|
|
|
(assoc-ref gtk:%standard-phases 'glib-or-gtk-compile-schemas))
|
|
|
|
|
(add-after 'install 'glib-or-gtk-wrap
|
|
|
|
|
(assoc-ref gtk:%standard-phases 'glib-or-gtk-wrap)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
(list pkg-config
|
|
|
|
|
python
|
|
|
|
|
glad
|
|
|
|
|
stb-image
|
|
|
|
|
utf8-h))
|
|
|
|
|
(inputs
|
|
|
|
|
(list fontconfig
|
|
|
|
|
gtk+
|
2022-03-21 19:19:29 +01:00
|
|
|
|
imgui
|
2022-01-29 04:27:06 +01:00
|
|
|
|
sdl2
|
|
|
|
|
sqlite
|
|
|
|
|
zlib))
|
|
|
|
|
(home-page "https://openboardview.org/")
|
|
|
|
|
(synopsis "Viewer for BoardView files")
|
|
|
|
|
(description "OpenBoardView is a viewer for BoardView files, which present
|
|
|
|
|
the details of a printed circuit board (PCB). It comes with features
|
|
|
|
|
such as:
|
|
|
|
|
@itemize
|
|
|
|
|
@item Dynamic part outline rendering, including complex connectors
|
|
|
|
|
@item Annotations, for leaving notes about parts, nets, pins or location
|
|
|
|
|
@item Configurable colour themes
|
|
|
|
|
@item Configurable DPI to facilitate usage on 4K monitors
|
|
|
|
|
@item Configurable for running on slower systems
|
|
|
|
|
@item Reads FZ (with key), BRD, BRD2, BDV and BV* formats.
|
|
|
|
|
@end itemize")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2017-06-23 23:05:17 +02:00
|
|
|
|
(define-public pulseview
|
|
|
|
|
(package
|
|
|
|
|
(name "pulseview")
|
2021-01-10 13:05:03 +01:00
|
|
|
|
(version "0.4.2")
|
2017-06-23 23:05:17 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
2021-01-10 13:05:03 +01:00
|
|
|
|
"https://sigrok.org/download/source/pulseview/pulseview-"
|
2017-06-23 23:05:17 +02:00
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-01-10 13:23:20 +01:00
|
|
|
|
"1jxbpz1h3m1mgrxw74rnihj8vawgqdpf6c33cqqbyd8v7rxgfhph"))
|
2022-01-20 14:19:22 +01:00
|
|
|
|
(patches (search-patches "pulseview-qt515-compat.patch"
|
|
|
|
|
"pulseview-glib-2.68.patch"))))
|
2018-10-30 16:30:11 +01:00
|
|
|
|
(build-system cmake-build-system)
|
2017-06-23 23:05:17 +02:00
|
|
|
|
(arguments
|
2022-01-20 14:19:22 +01:00
|
|
|
|
`(#:tests? #f ;format_time_minutes_test is failing
|
2018-10-30 16:30:11 +01:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'remove-empty-doc-directory
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(with-directory-excursion (string-append out "/share")
|
|
|
|
|
;; Use RMDIR to never risk silently deleting files.
|
|
|
|
|
(rmdir "doc/pulseview")
|
2022-01-20 14:19:22 +01:00
|
|
|
|
(rmdir "doc"))))))))
|
2017-06-23 23:05:17 +02:00
|
|
|
|
(native-inputs
|
2022-07-19 22:52:05 +02:00
|
|
|
|
(list pkg-config qttools-5))
|
2017-06-23 23:05:17 +02:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list boost
|
|
|
|
|
glib
|
|
|
|
|
glibmm
|
|
|
|
|
libsigrok
|
|
|
|
|
libsigrokdecode
|
|
|
|
|
qtbase-5
|
2022-07-17 07:11:46 +02:00
|
|
|
|
qtsvg-5))
|
2018-04-16 19:08:34 +02:00
|
|
|
|
(home-page "https://www.sigrok.org/wiki/PulseView")
|
2017-06-23 23:05:17 +02:00
|
|
|
|
(synopsis "Qt based logic analyzer, oscilloscope and MSO GUI for sigrok")
|
|
|
|
|
(description "PulseView is a Qt based logic analyzer, oscilloscope and MSO GUI
|
|
|
|
|
for sigrok.")
|
|
|
|
|
(license license:gpl3+)))
|
2021-02-16 20:09:29 +01:00
|
|
|
|
|
|
|
|
|
(define-public comedilib
|
|
|
|
|
(package
|
|
|
|
|
(name "comedilib")
|
|
|
|
|
(version "0.12.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.comedi.org/download/comedilib-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0wzh23iyix4xj211fsd8hwrdcjhg2w5jswk9kywb1gpd3h8afajj"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(synopsis "Library for Comedi")
|
|
|
|
|
(description "Comedilib is a user-space library that provides a
|
|
|
|
|
developer-friendly interface to Comedi devices. Comedi is a collection of
|
|
|
|
|
drivers for a variety of common data acquisition plug-in boards. The drivers
|
|
|
|
|
are implemented as a core Linux kernel module providing common functionality and
|
|
|
|
|
individual low-level driver modules.")
|
|
|
|
|
(home-page "https://www.comedi.org/")
|
|
|
|
|
(license license:lgpl2.1)))
|
2021-02-16 20:10:33 +01:00
|
|
|
|
|
|
|
|
|
(define-public xoscope
|
|
|
|
|
(package
|
|
|
|
|
(name "xoscope")
|
2021-04-20 11:08:30 +02:00
|
|
|
|
(version "2.3")
|
2021-02-16 20:10:33 +01:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/xoscope/xoscope/"
|
|
|
|
|
version "/xoscope-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-04-20 11:08:30 +02:00
|
|
|
|
"0a5ycfc1qdmibvagc82r2mhv2i99m6pndy5i6ixas3j2297g6pgq"))))
|
2021-02-16 20:10:33 +01:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list m4 pkg-config))
|
2021-02-16 20:10:33 +01:00
|
|
|
|
(inputs
|
2021-12-13 17:18:24 +01:00
|
|
|
|
(list alsa-lib comedilib fftw gtk+ gtkdatabox))
|
2021-02-16 20:10:33 +01:00
|
|
|
|
(synopsis "Digital oscilloscope")
|
|
|
|
|
(description "Xoscope is a digital oscilloscope that can acquire signals
|
|
|
|
|
from ALSA, ESD, and COMEDI sources. This package currently does not include
|
|
|
|
|
support for ESD sources.")
|
|
|
|
|
(home-page "http://xoscope.sourceforge.net/")
|
|
|
|
|
(license license:gpl2+)))
|