mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 15:22:18 -05:00
gnu: hackrf: Update to 2021.03.1.
* gnu/packages/radio.scm (hackrf): Update to 2021.03.1.
This commit is contained in:
parent
4ad3f818c9
commit
5e0b11fbe8
1 changed files with 41 additions and 46 deletions
|
@ -799,61 +799,56 @@ (define-public flwrap
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define-public hackrf
|
(define-public hackrf
|
||||||
;; Using a git commit because there have been many many commits
|
(package
|
||||||
;; since the relase two years ago, but no sign of a promised
|
(name "hackrf")
|
||||||
;; release for many months now.
|
(version "2021.03.1")
|
||||||
(let ((commit "43e6f99fe8543094d18ff3a6550ed2066c398862")
|
(source
|
||||||
(revision "0"))
|
(origin
|
||||||
(package
|
|
||||||
(name "hackrf")
|
|
||||||
(version (git-version "2018.01.1" revision commit))
|
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/mossmann/hackrf")
|
(url "https://github.com/mossmann/hackrf")
|
||||||
(commit commit)))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0avnv693xi0zsnrvkbfn0ln1r3s1iyj0bz7sc3gxay909av0pvbc"))))
|
(base32 "12fkgimjy5ia291c1rn4y59pn9r5wdvz5x9z5xc8zr1xr96iyhfs"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:configure-flags
|
'(#:configure-flags
|
||||||
(list "-DUDEV_RULES_GROUP=dialout"
|
(list "-DUDEV_RULES_GROUP=dialout"
|
||||||
(string-append "-DUDEV_RULES_PATH="
|
(string-append "-DUDEV_RULES_PATH="
|
||||||
(assoc-ref %outputs "out")
|
(assoc-ref %outputs "out")
|
||||||
"/lib/udev/rules.d"))
|
"/lib/udev/rules.d"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'configure 'enter-source-directory
|
(add-before 'configure 'enter-source-directory
|
||||||
(lambda _
|
(lambda _
|
||||||
(chdir "host")
|
(chdir "host")
|
||||||
#t))
|
#t))
|
||||||
(add-after 'install 'delete-static-library
|
(add-after 'install 'delete-static-library
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(delete-file (string-append (assoc-ref outputs "out")
|
(delete-file (string-append (assoc-ref outputs "out")
|
||||||
"/lib/libhackrf.a"))
|
"/lib/libhackrf.a"))
|
||||||
#t))
|
#t))
|
||||||
(add-before 'install-license-files 'leave-source-directory
|
(add-before 'install-license-files 'leave-source-directory
|
||||||
(lambda _
|
(lambda _
|
||||||
(chdir "..")
|
(chdir "..")
|
||||||
#t)))
|
#t)))
|
||||||
#:tests? #f)) ; no test suite
|
#:tests? #f)) ; no test suite
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("fftw" ,fftw)
|
`(("fftw" ,fftw)
|
||||||
("fftwf" ,fftwf)
|
("fftwf" ,fftwf)
|
||||||
("libusb" ,libusb)))
|
("libusb" ,libusb)))
|
||||||
(home-page "https://greatscottgadgets.com/hackrf/")
|
(home-page "https://greatscottgadgets.com/hackrf/")
|
||||||
(synopsis "User-space library and utilities for HackRF SDR")
|
(synopsis "User-space library and utilities for HackRF SDR")
|
||||||
(description
|
(description
|
||||||
"Command line utilities and a C library for controlling the HackRF
|
"Command line utilities and a C library for controlling the HackRF
|
||||||
Software Defined Radio (SDR) over USB. Installing this package installs the
|
Software Defined Radio (SDR) over USB. Installing this package installs the
|
||||||
userspace hackrf utilities and C library. To install the hackrf udev rules,
|
userspace hackrf utilities and C library. To install the hackrf udev rules,
|
||||||
you must extend 'udev-service-type' with this package. E.g.:
|
you must extend 'udev-service-type' with this package. E.g.:
|
||||||
@code{(udev-rules-service 'hackrf hackrf #:groups '(\"dialout\"))}.")
|
@code{(udev-rules-service 'hackrf hackrf #:groups '(\"dialout\"))}.")
|
||||||
(license license:gpl2))))
|
(license license:gpl2)))
|
||||||
|
|
||||||
(define-public hamlib
|
(define-public hamlib
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue