40 lines
790 B
Nix
40 lines
790 B
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;
|
|
};
|
|
|
|
defconfig = "wiiu_defconfig";
|
|
}
|
|
))
|
|
(old: {
|
|
postInstall =
|
|
''
|
|
cp arch/powerpc/boot/dtbImage.wiiu $out/
|
|
''
|
|
+ old.postInstall;
|
|
})
|