55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
# see https://discourse.nixos.org/t/port-nixos-to-ppc32/11965/13
|
|
|
|
{
|
|
buildLinux,
|
|
fetchFromGitLab,
|
|
fetchurl,
|
|
lib,
|
|
stdenv,
|
|
...
|
|
}@args:
|
|
lib.overrideDerivation
|
|
(buildLinux (
|
|
args
|
|
// {
|
|
version = "6.6.75-wiiu";
|
|
src = fetchFromGitLab {
|
|
owner = "linux-wiiu";
|
|
repo = "linux-wiiu";
|
|
rev = "841387c876c096f8dd0df1756541aa57b1166577"; # rewrite-6.6
|
|
hash = "sha256-qrC9jdRGQusdZCYX/Lz1boPtEFGlc74A+lB3kEIDrSY=";
|
|
};
|
|
|
|
autoModules = false;
|
|
|
|
features = {
|
|
efiBootStub = false;
|
|
iwlwifi = false;
|
|
needsCifsUtils = false;
|
|
};
|
|
|
|
kernelPatches = [
|
|
{
|
|
name = "fix-mem0";
|
|
patch = ./wiiu-disable-mem0.patch;
|
|
}
|
|
];
|
|
|
|
#enableCommonConfig = false;
|
|
#structuredExtraConfig = import ./stripped-config.nix {
|
|
# version = "6.6.75-wiiu";
|
|
# inherit lib stdenv ;
|
|
# rustAvailable = true;
|
|
# features = {}; # Ensure we know of all extra patches, etc.
|
|
#};
|
|
|
|
defconfig = "wiiu_defconfig";
|
|
}
|
|
))
|
|
(old: {
|
|
postInstall =
|
|
''
|
|
cp arch/powerpc/boot/dtbImage.wiiu $out/
|
|
''
|
|
+ old.postInstall;
|
|
})
|