33 lines
744 B
Nix
33 lines
744 B
Nix
{
|
|
lib,
|
|
buildLinux,
|
|
fetchFromGitea,
|
|
runCommand,
|
|
...
|
|
} @ args: let
|
|
rawSrc = fetchFromGitea {
|
|
domain = "gitea.awroo.fun";
|
|
owner = "romanl";
|
|
repo = "linux";
|
|
rev = "576f7cb3848179b36ef92420a1ab4c910b53b357";
|
|
hash = "sha256-ApsnYs38vrKwEbvO0d0c4aqpCRQe5FQ7Aa66U38x8JI=";
|
|
};
|
|
|
|
patchedSrc = runCommand "linux-src-pipa" {} ''
|
|
cp -a ${rawSrc} $out
|
|
chmod -R +w $out
|
|
cp ${./pipa.config} $out/arch/arm64/configs/pipa.config
|
|
'';
|
|
in
|
|
buildLinux (args
|
|
// {
|
|
version = "6.18.2";
|
|
modDirVersion = "6.18.2";
|
|
src = patchedSrc;
|
|
defconfig = "defconfig pipa.config";
|
|
ignoreConfigErrors = true;
|
|
stripDebugList = ["vmlinux" "lib/modules"];
|
|
|
|
extraMeta.branch = "6.18";
|
|
})
|