Skip to content

Commit

Permalink
apple/t2: bump kernel from 6.11.7 to 6.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
soopyc authored and mergify[bot] committed Dec 6, 2024
1 parent 2297628 commit e563803
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apple/t2/pkgs/linux-t2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@
, ... } @ args:

let
version = "6.11.7";
majorVersion = with lib; (elemAt (take 1 (splitVersion version)) 0);
version = "6.12.2";
majorVersion = lib.elemAt (lib.take 1 (lib.splitVersion version)) 0;

patchRepo = fetchFromGitHub {
owner = "t2linux";
repo = "linux-t2-patches";
rev = "ec4545c603cf2ef315818eccce62d06ee18e5c60";
hash = "sha256-Nm7WiLjotwk5NDrpKTgcKtyQTOUG7A88ZgtzD460qY0=";
rev = "539eea1f9127f1623794ee8c7ccc37e8b00f60a3";
hash = "sha256-pFeNOLTqnEupyEZDk+fX/5GFpobvN+L7Wv2K6V5Xx9g=";
};

kernel = fetchzip {
url = "mirror://kernel/linux/kernel/v${majorVersion}.x/linux-${version}.tar.xz";
hash = "sha256-wHWd8xfEFOTy0FkFBtn30+6816XC4uhgn0G9b40n9Co=";
hash = "sha256-2xfXs++pJiNgFCdpfYsNy3HE6rCyztbOwAlMObLCgAI=";
};
in
buildLinux (args // {
inherit version;

pname = "linux-t2";
# Snippet from nixpkgs
modDirVersion = with lib; "${concatStringsSep "." (take 3 (splitVersion "${version}.0"))}";
modDirVersion = "${lib.concatStringsSep "." (lib.take 3 (lib.splitVersion "${version}.0"))}";

src = runCommand "patched-source" {} ''
cp -r ${kernel} $out
Expand Down

0 comments on commit e563803

Please sign in to comment.