nixos-x13s/packages/default.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

2024-01-22 18:47:25 +01:00
{ lib, pkgs, ... }:
let
sources = import ../npins;
linux_x13s_pkg =
{ buildLinux, ... }@args:
let
version = "6.8.0-rc4";
2024-01-22 18:47:25 +01:00
modDirVersion = "${version}";
in
buildLinux (
args
// {
inherit version modDirVersion;
2024-01-26 16:21:16 +01:00
src = sources.linux;
2024-01-22 18:47:25 +01:00
2024-02-07 15:39:52 +01:00
kernelPatches = (args.kernelPatches or [ ]) ++ [
{
# fix resets when reading EFI vars
name = "qcom-shm-bridge-tz";
patch = (
pkgs.fetchurl {
url = "https://lore.kernel.org/lkml/20240205182810.58382-1-brgl@bgdev.pl/t.mbox.gz";
hash = "sha256-apwfO/bhVd8jzsHpOPFQXshzdwfg5Zcelf2vCDtlCtI=";
}
);
extraStructuredConfig = {
QCOM_TZMEM_MODE_SHMBRIDGE = lib.kernel.yes;
};
}
];
2024-01-22 18:47:25 +01:00
extraMeta.branch = lib.versions.majorMinor version;
}
);
in
rec {
"x13s/linux" = pkgs.callPackage linux_x13s_pkg { defconfig = "johan_defconfig"; };
"x13s/alsa-ucm-conf" = pkgs.alsa-ucm-conf.overrideAttrs (
_: {
version = sources.alsa-ucm-conf.version;
2024-01-22 18:47:25 +01:00
src = sources.alsa-ucm-conf;
patches = [ ];
2024-01-22 18:47:25 +01:00
}
);
pd-mapper = pkgs.callPackage ./pd-mapper { inherit qrtr; };
qrtr = pkgs.callPackage ./qrtr { };
"x13s/extra-firmware" = pkgs.callPackage ./extra-firmware.nix { };
}