Browse Source

Added all toolchains.

master
Knarkzel 2 years ago
parent
commit
e55a59b156
  1. 18
      README.md
  2. 4
      devkitA64.nix
  3. 27
      devkitARM.nix
  4. 6
      devkitPPC.nix

18
README.md

@ -8,3 +8,21 @@ git clone https://github.com/knarkzel/devkitnix
cd devkitnix cd devkitnix
nix-build <toolchain>.nix nix-build <toolchain>.nix
``` ```
## devkitARM
- Game Boy Advance
- Nintendo DS
- Nintendo 3DS
- GP32
- GP2X
## devkitPPC
- GameCube
- Wii
- Wii U
# devkitA64
- Nintendo Switch

4
devkita64.nix → devkitA64.nix

@ -8,8 +8,8 @@ let
finalImageTag = "20221113"; finalImageTag = "20221113";
}; };
in { in {
devkita64 = pkgs.stdenv.mkDerivation { devkitA64 = pkgs.stdenv.mkDerivation {
name = "devkita64"; name = "devkitA64";
src = import ./extract-docker.nix pkgs image; src = import ./extract-docker.nix pkgs image;
nativeBuildInputs = [ pkgs.autoPatchelfHook ]; nativeBuildInputs = [ pkgs.autoPatchelfHook ];
buildInputs = [ buildInputs = [

27
devkitARM.nix

@ -0,0 +1,27 @@
let
pkgs = import <nixpkgs> {};
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
'';
};
}

6
devkitppc.nix → devkitPPC.nix

@ -8,8 +8,8 @@ let
finalImageTag = "20220821"; finalImageTag = "20220821";
}; };
in { in {
devkitppc = pkgs.stdenv.mkDerivation { devkitPPC = pkgs.stdenv.mkDerivation {
name = "devkitppc"; name = "devkitPPC";
src = import ./extract-docker.nix pkgs image; src = import ./extract-docker.nix pkgs image;
nativeBuildInputs = [ pkgs.autoPatchelfHook ]; nativeBuildInputs = [ pkgs.autoPatchelfHook ];
buildInputs = [ buildInputs = [
@ -21,7 +21,7 @@ in {
buildPhase = "true"; buildPhase = "true";
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out
cp -r $src/{devkitPPC,libogc,portlibs,tools} $out cp -r $src/{devkitPPC,libogc,portlibs,tools,wut} $out
rm -rf $out/pacman rm -rf $out/pacman
''; '';
}; };
Loading…
Cancel
Save