mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-21 00:59:45 +01:00
25 lines
742 B
Nix
25 lines
742 B
Nix
{ lib
|
|
, buildLinux
|
|
, fetchFromGitLab
|
|
, ...
|
|
} @ args:
|
|
buildLinux (args
|
|
// rec {
|
|
defconfig = "librem5_defconfig";
|
|
version = "6.5.6-librem5";
|
|
modDirVersion = version;
|
|
src = fetchFromGitLab {
|
|
domain = "source.puri.sm";
|
|
owner = "Librem5";
|
|
repo = "linux";
|
|
rev = "pureos/6.5.6pureos1";
|
|
hash = "sha256-hOv0oy31mbC+43sI1n1oqKl7TtT/Ivj6UhiW4maumCg=";
|
|
};
|
|
kernelPatches = [ ];
|
|
structuredExtraConfig = with lib.kernel; {
|
|
# buildLinux overrides this and defaults to 32, so go back to the value defined librem5_defconfig
|
|
# this is required for millipixels to take photos, otherwise the VIDIOC_REQ_BUFS ioctl returns ENOMEM
|
|
CMA_SIZE_MBYTES = lib.mkForce (freeform "320");
|
|
};
|
|
}
|
|
// args.argsOverride or { })
|