Collection of devkitpro toolchains compatible with Nix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB

2 years ago
# devkitnix
Collection of devkitPro packages for Nix using flakes.
```
2 years ago
$ nix flake show github:knarkzel/devkitnix
└───packages
└───x86_64-linux
├───devkitA64: package 'devkitA64'
├───devkitARM: package 'devkitARM'
└───devkitPPC: package 'devkitPPC'
2 years ago
$ nix build github:knarkzel/devkitnix#devkitPPC
$ ls result
devkitPPC libogc portlibs tools wut
```
2 years ago
2 years ago
## Minimal example
```nix
{
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](https://github.com/knarkzel/switch).