initial snapshot

This commit is contained in:
Chloe Bethel 2025-02-10 11:47:09 +00:00
commit 24b41c4faf
16 changed files with 452 additions and 0 deletions

40
wiiu-kernel.nix Normal file
View file

@ -0,0 +1,40 @@
# 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;
})