nixos-x13s/packages/default.nix

52 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2024-01-22 18:47:25 +01:00
{ lib, pkgs, ... }:
let
sources = import ../npins;
linux_x13s_pkg =
{ buildLinux, ... }@args:
let
2024-02-19 17:43:18 +01:00
version = "6.8.0-rc5";
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 [ ]) ++ [
2024-02-20 13:39:42 +01:00
# {
# # 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-MeuDkVFSf/KqzcD92wR6U9yOJhOKmZkXsgGcOm/9l/k=";
# }
# );
# extraStructuredConfig = {
# QCOM_TZMEM_MODE_SHMBRIDGE = lib.kernel.yes;
# };
# }
2024-02-07 15:39:52 +01:00
];
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 { };
}