Skip to content

Commit

Permalink
linux-jovian: Revert breaking change from Quectel
Browse files Browse the repository at this point in the history
Fixes #441
  • Loading branch information
samueldr committed Nov 2, 2024
1 parent aad17e6 commit 4a83095
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pkgs/linux-jovian/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, buildLinux, ... } @ args:
{ lib, fetchFromGitHub, buildLinux, fetchpatch, ... } @ args:

let
inherit (lib) versions;
Expand All @@ -10,6 +10,22 @@ in
buildLinux (args // rec {
version = "${kernelVersion}-${vendorVersion}";

kernelPatches = (args.kernelPatches or []) ++ [
{
name = "revert-bluetooth-mgmt-quectel.diff";
# The patch originally intended to make bluez aware of its own flag changes.
# Bluez now is aware of its own changes starting with bluez 5.78
# - https://github.com/bluez/bluez/commit/9cc587947b6ac56a4c94dcc880b273bc72af22a8
# Without reverting this change, Bluez 5.78+ gets into a loop setting flags.
# See: https://github.com/Jovian-Experiments/Jovian-NixOS/issues/441
patch = fetchpatch {
url = "https://github.com/Jovian-Experiments/linux/commit/3ea1541efc91116181ec4abcebd62810df7aff33.patch";
hash = "sha256-RYDnJGz349VVZ3YWpDfPb3aSLH2noAnn2xFDqHW26DQ=";
revert = true;
};
}
];

# branchVersion needs to be x.y
extraMeta.branch = versions.majorMinor version;

Expand Down

0 comments on commit 4a83095

Please sign in to comment.