From b5232c4a88a2919c8f6ce9ffccc59c4bc6dc776a Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Fri, 13 Nov 2020 19:44:30 +0100 Subject: [PATCH 1/2] Add new bluetooth dongle firmware. --- archachatina.nix | 1 + rtl8761b.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 rtl8761b.nix diff --git a/archachatina.nix b/archachatina.nix index 71723ff..4433b1b 100644 --- a/archachatina.nix +++ b/archachatina.nix @@ -12,6 +12,7 @@ ./qemu-user.nix ./atmega.nix ./v4l2loopback.nix + ./rtl8761b.nix ]; environment.etc."lvm/lvm.conf".text = '' diff --git a/rtl8761b.nix b/rtl8761b.nix new file mode 100644 index 0000000..5f3351a --- /dev/null +++ b/rtl8761b.nix @@ -0,0 +1,27 @@ +{ config, pkgs, ... }: + +{ + + hardware.firmware = with pkgs; [ (stdenv.mkDerivation rec { + name = "rtl8761b-fw"; + + fw = fetchurl { + url = "https://github.com/Realtek-OpenSource/android_hardware_realtek/raw/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761b_fw"; + sha256 = "0b59a1f2422c006837c4b5e46b59d49bfdbca1defb958adbbc0d57ebdc19cc82"; + }; + config = fetchurl { + url = "https://github.com/Realtek-OpenSource/android_hardware_realtek/raw/e58b611f34f2f5ff57bb0d8cdf1b2e4751e3ccbd/bt/rtkbt/Firmware/BT/rtl8761b_config"; + sha256 = "aa86a092ee58e96256331d5c28c199ceaadec434460e98e7dea20e411e1aa570"; + }; + + unpackPhase = ":"; + buildPhase = '' + dn=$out/lib/firmware + mkdir -p $dn/rtl_bt + ln -s ${fw} $dn/rtl_bt/rtl8761b_fw.bin + ln -s ${config} $dn/rtl_bt/rtl8761b_config.bin + ''; + installPhase = ":"; + }) ]; + +} From 8b2371ffeac950866308e55d9a263ab095107527 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Tue, 17 Nov 2020 10:13:36 +0100 Subject: [PATCH 2/2] typo --- decoysnail.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decoysnail.nix b/decoysnail.nix index e7457ea..6a4a5f6 100644 --- a/decoysnail.nix +++ b/decoysnail.nix @@ -9,7 +9,7 @@ ./uefi.nix ./fstrim.nix ./atmega.nix - ./v4l2loopack.nix + ./v4l2loopback.nix ]; environment.etc."lvm/lvm.conf".text = ''