From da04e2c03e222ecfed750109d74823d17e89c6bc Mon Sep 17 00:00:00 2001 From: TQ Hirsch Date: Thu, 14 Sep 2023 14:05:48 +0200 Subject: [PATCH] Added linux kernel v6.5.3 --- default.nix | 8 ++++++++ flake.lock | 6 +++--- flake.nix | 4 ++++ linux_653.nix | 25 +++++++++++++++++++++++++ 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 default.nix create mode 100644 linux_653.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..8042426 --- /dev/null +++ b/default.nix @@ -0,0 +1,8 @@ +# This file can be used as an overlay for non-flake based systems +self: super: { +# vim: set et,sw=4 + performous-composer = self.libsForQt5.callPackage ./performous-composer.nix {}; + open-simh = self.callPackage ./open-simh.nix {}; + linux_6_5_3 = self.callPackage ./linux_653.nix {}; + linuxPackages_6_5_3 = self.linuxPackagesFor linux_6_5_3; +} diff --git a/flake.lock b/flake.lock index 1dbea70..3d9fd45 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1689935543, - "narHash": "sha256-6GQ9ib4dA/r1leC5VUpsBo0BmDvNxLjKrX1iyL+h8mc=", + "lastModified": 1687245362, + "narHash": "sha256-+f9tH+k3u9lSS136M2LCsl5NJTNPvhmHEiVOcypiu1E=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "e43e2448161c0a2c4928abec4e16eae1516571bc", + "rev": "205ee073b053fc4d87d5adf2ebd44ebbef7bca4d", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index f4b91b1..98eccf7 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,10 @@ performous-composer = pkgs.libsForQt5.callPackage ./performous-composer.nix {}; open-simh = pkgs.callPackage ./open-simh.nix {}; }; + legacyPackages = rec { + linux_6_5_3 = pkgs.callPackage ./linux_653.nix {}; + linuxPackages_6_5_3 = pkgs.linuxPackagesFor linux_6_5_3; + }; apps = rec { }; } diff --git a/linux_653.nix b/linux_653.nix new file mode 100644 index 0000000..6aa7695 --- /dev/null +++ b/linux_653.nix @@ -0,0 +1,25 @@ +{ lib, fetchurl, buildLinux, kernelPatches, ... } @ args: + +with lib; +with lib.kernel; +buildLinux (args // rec { + version = "6.5.3"; + + # modDirVersion needs to be x.y.z, will automatically add .0 if needed + modDirVersion = versions.pad 3 version; + + # branchVersion needs to be x.y + extraMeta.branch = versions.majorMinor version; + + src = fetchurl { + url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz"; + hash = "sha256-TKwT97F72Nz5AyrWj5Ejq1MT1pjJ9ZQWBDFlFQdj608="; + }; + + structuredExtraConfig.VIDEO_STK1160_COMMON = lib.mkForce (option no); + + kernelPatches = with args.kernelPatches; [ + bridge_stp_helper + request_key_helper + ]; +} // (args.argsOverride or { }))