2022-12-19 17:17:39 +01:00
|
|
|
;;; SPDX-License-Identifier: GPL-3.0-or-later
|
2021-12-02 13:48:19 +01:00
|
|
|
;;; Copyright © 2022-2023 Jonathan Brielmaier <jonathan.brielmaier@web.de>
|
2022-09-05 08:37:04 +02:00
|
|
|
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
|
|
|
|
|
|
|
|
(define-module (nongnu packages firmware)
|
|
|
|
#:use-module (gnu packages efi)
|
|
|
|
#:use-module (gnu packages firmware)
|
2021-12-02 13:48:19 +01:00
|
|
|
#:use-module (guix build-system copy)
|
2022-09-05 08:37:04 +02:00
|
|
|
#:use-module (guix gexp)
|
2021-12-02 13:48:19 +01:00
|
|
|
#:use-module (guix git-download)
|
2022-09-05 08:37:04 +02:00
|
|
|
#:use-module (guix packages)
|
2021-12-02 13:48:19 +01:00
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (nonguix licenses))
|
2022-09-05 08:37:04 +02:00
|
|
|
|
|
|
|
;; fwupd with LVFS nonfree repositories enabled
|
|
|
|
(define-public fwupd-nonfree
|
|
|
|
(package
|
|
|
|
(inherit fwupd)
|
|
|
|
(name "fwupd-nonfree")
|
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments (package-arguments fwupd)
|
|
|
|
((#:configure-flags _
|
|
|
|
#~'())
|
|
|
|
#~(list "--wrap-mode=nofallback"
|
|
|
|
"-Dsystemd=false"
|
|
|
|
(string-append "-Defi_os_dir="
|
|
|
|
#$gnu-efi "/lib")
|
|
|
|
"-Defi_binary=false"
|
|
|
|
(string-append "-Dudevdir="
|
|
|
|
#$output "/lib/udev")
|
|
|
|
"--localstatedir=/var"
|
|
|
|
(string-append "--libexecdir="
|
|
|
|
#$output "/libexec")
|
|
|
|
"-Dsupported_build=true"))))))
|
2021-12-02 13:48:19 +01:00
|
|
|
|
|
|
|
(define-public ov5640-firmware
|
|
|
|
(let ((commit "6e8e591e17e207644dfe747e51026967bb1edab5")
|
|
|
|
(revision "1"))
|
|
|
|
(package
|
|
|
|
(name "ov5640-firmware")
|
|
|
|
(version (git-version "0.0.0" revision commit))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://megous.com/git/linux-firmware")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"19xmkdvlkczc6zgigy8jdbgnp37i6pc03m2cm3gilvzg8m7v18ad"))))
|
|
|
|
(build-system copy-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:install-plan '(("ov5640_af.bin" "lib/firmware/"))))
|
|
|
|
(synopsis "Firmware for the OV5640 sensor in the PinePhone")
|
|
|
|
(description "This package provides binary firmware for the 0V5640 sensor
|
|
|
|
in the PinePhone.")
|
|
|
|
(home-page "https://megous.com/git/linux-firmware")
|
|
|
|
(license (nonfree (string-append "unknown"))))))
|
2021-12-02 13:49:06 +01:00
|
|
|
|
|
|
|
(define-public rtl8723bt-firmware
|
|
|
|
(let ((commit "6e8e591e17e207644dfe747e51026967bb1edab5")
|
|
|
|
(revision "1"))
|
|
|
|
(package
|
|
|
|
(name "rtl8723bt-firmware")
|
|
|
|
(version (git-version "0.0.0" revision commit))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://megous.com/git/linux-firmware")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"19xmkdvlkczc6zgigy8jdbgnp37i6pc03m2cm3gilvzg8m7v18ad"))))
|
|
|
|
(build-system copy-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:install-plan '(("rtl_bt/rtl8723cs_xx_fw.bin" "lib/firmware/"))))
|
|
|
|
(synopsis "Firmware for the RTL8723BS/CS")
|
|
|
|
(description "This package provides binary firmware for the RTL8723BS/CS
|
|
|
|
WiFi/Bluetooth chip in the PinePhone.")
|
|
|
|
(home-page "https://megous.com/git/linux-firmware")
|
|
|
|
(license (nonfree (string-append "unknown"))))))
|
2023-01-11 00:43:46 +01:00
|
|
|
|
|
|
|
(define-public anx7688-firmware
|
|
|
|
(let ((commit "6e8e591e17e207644dfe747e51026967bb1edab5")
|
|
|
|
(revision "1"))
|
|
|
|
(package
|
|
|
|
(name "anx7688-firmware")
|
|
|
|
(version (git-version "0.0.0" revision commit))
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://megous.com/git/linux-firmware")
|
|
|
|
(commit commit)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"19xmkdvlkczc6zgigy8jdbgnp37i6pc03m2cm3gilvzg8m7v18ad"))))
|
|
|
|
(build-system copy-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:install-plan '(("anx7688-fw.bin" "lib/firmware/"))))
|
|
|
|
(synopsis "Firmware for the ANX7688")
|
|
|
|
(description "This package provides binary firmware for the ANX7688
|
|
|
|
HDMI to USB Type-C Bridge in the PinePhone.")
|
|
|
|
(home-page "https://megous.com/git/linux-firmware")
|
|
|
|
(license (nonfree (string-append "unknown"))))))
|