Skip to content

Collection of devkitpro toolchains compatible with Nix

Notifications You must be signed in to change notification settings

toast003/devkitnix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

devkitnix

Collection of devkitPro packages for Nix using flakes.

$ nix flake show github:knarkzel/devkitnix
└───packages
    └───x86_64-linux
        ├───devkitA64: package 'devkitA64'
        ├───devkitARM: package 'devkitARM'
        └───devkitPPC: package 'devkitPPC'
$ nix build github:knarkzel/devkitnix#devkitPPC
$ ls result
devkitPPC  libogc  portlibs  tools  wut

Minimal example

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
    devkitnix = {
      url = "github:knarkzel/devkitnix";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = {
    self,
    nixpkgs,
    devkitnix,
  }: let
    pkgs = import nixpkgs {system = "x86_64-linux";};
    devkitA64 = devkitnix.packages.x86_64-linux.devkitA64;
  in {
    devShells.x86_64-linux.default = pkgs.mkShell {
      buildInputs = [
        devkitA64
      ];
      shellHook = ''
        export DEVKITPRO=${devkitA64}
      '';
    };
  };
}

For more example usage of devkitnix, see the switch example.

About

Collection of devkitpro toolchains compatible with Nix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 100.0%