nixos-x13s/packages/default.nix
Adam Stephens 3a002c5a64
fix: pd-mapper can't read zstd firmware files
nixos unstable and 24.05 switched to zstd compression for firmware
files. Roll back to the previous setup of creating a package of the
qcom firmware uncompressed, and patching pd-mapper.

closes #14
2024-05-27 12:11:12 -04:00

33 lines
769 B
Nix

{ lib, pkgs, ... }:
let
sources = import ../npins;
linux_x13s_pkg =
{ version, buildLinux, ... }@args:
buildLinux (
args
// {
modDirVersion = version;
kernelPatches = (args.kernelPatches or [ ]) ++ [ ];
extraMeta.branch = lib.versions.majorMinor version;
}
);
in
rec {
linux_jhovold = linux_jhovold_6_9;
linux_jhovold_6_9 = pkgs.callPackage linux_x13s_pkg {
src = sources.linux-jhovold;
version = "6.9.0";
defconfig = "johan_defconfig";
};
pd-mapper = pkgs.callPackage ./pd-mapper { inherit qrtr; };
qrtr = pkgs.callPackage ./qrtr { };
"x13s/extra-firmware" = pkgs.callPackage ./extra-firmware.nix { };
uncompressed-firmware = pkgs.callPackage ./uncompressed-firmware.nix { };
}