|
|
|
@ -14,4 +14,36 @@ $ ls result
@@ -14,4 +14,36 @@ $ ls result
|
|
|
|
|
devkitPPC libogc portlibs tools wut |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
For example usage of `devkitnix`, see the [switch example](https://github.com/knarkzel/switch). |
|
|
|
|
## 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). |
|
|
|
|