diff --git a/README.md b/README.md index 9ca3e4f..7ead936 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,21 @@ git clone https://github.com/knarkzel/devkitnix cd devkitnix nix-build .nix ``` + +## devkitARM + +- Game Boy Advance +- Nintendo DS +- Nintendo 3DS +- GP32 +- GP2X + +## devkitPPC + +- GameCube +- Wii +- Wii U + +# devkitA64 + +- Nintendo Switch diff --git a/devkita64.nix b/devkitA64.nix similarity index 91% rename from devkita64.nix rename to devkitA64.nix index 3c2b30f..a402083 100644 --- a/devkita64.nix +++ b/devkitA64.nix @@ -8,8 +8,8 @@ let finalImageTag = "20221113"; }; in { - devkita64 = pkgs.stdenv.mkDerivation { - name = "devkita64"; + devkitA64 = pkgs.stdenv.mkDerivation { + name = "devkitA64"; src = import ./extract-docker.nix pkgs image; nativeBuildInputs = [ pkgs.autoPatchelfHook ]; buildInputs = [ diff --git a/devkitARM.nix b/devkitARM.nix new file mode 100644 index 0000000..30e4d2a --- /dev/null +++ b/devkitARM.nix @@ -0,0 +1,27 @@ +let + pkgs = import {}; + image = pkgs.dockerTools.pullImage { + imageName = "devkitpro/devkitarm"; + imageDigest = "sha256:695d1eb865ca4b908b1f5c4de777b9eef0f927680f0c0654b07721f1df908606"; + sha256 = "U2Xkt4IYUeU00w/FzlvySzG5lFL2R7kN8sjxL0EEKD4="; + finalImageName = "devkitpro/devkitarm"; + finalImageTag = "20221115"; + }; +in { + devkitARM = pkgs.stdenv.mkDerivation { + name = "devkitARM"; + src = import ./extract-docker.nix pkgs image; + nativeBuildInputs = [ pkgs.autoPatchelfHook ]; + buildInputs = [ + pkgs.stdenv.cc.cc + pkgs.ncurses6 + pkgs.zsnes + ]; + buildPhase = "true"; + installPhase = '' + mkdir -p $out + cp -r $src/{devkitARM,libgba,libnds,libctru,libmirko,liborcus,portlibs,tools} $out + rm -rf $out/pacman + ''; + }; +} diff --git a/devkitppc.nix b/devkitPPC.nix similarity index 84% rename from devkitppc.nix rename to devkitPPC.nix index 81369c2..896bc3e 100644 --- a/devkitppc.nix +++ b/devkitPPC.nix @@ -8,8 +8,8 @@ let finalImageTag = "20220821"; }; in { - devkitppc = pkgs.stdenv.mkDerivation { - name = "devkitppc"; + devkitPPC = pkgs.stdenv.mkDerivation { + name = "devkitPPC"; src = import ./extract-docker.nix pkgs image; nativeBuildInputs = [ pkgs.autoPatchelfHook ]; buildInputs = [ @@ -21,7 +21,7 @@ in { buildPhase = "true"; installPhase = '' mkdir -p $out - cp -r $src/{devkitPPC,libogc,portlibs,tools} $out + cp -r $src/{devkitPPC,libogc,portlibs,tools,wut} $out rm -rf $out/pacman ''; };