Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svelterust/devkitnix
Collection of devkitpro toolchains compatible with Nix
https://github.com/svelterust/devkitnix
devkitpro nix
Last synced: 2 months ago
JSON representation
Collection of devkitpro toolchains compatible with Nix
- Host: GitHub
- URL: https://github.com/svelterust/devkitnix
- Owner: svelterust
- Created: 2022-11-15T14:13:54.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-19T00:00:53.000Z (about 2 years ago)
- Last Synced: 2024-11-24T16:18:12.200Z (2 months ago)
- Topics: devkitpro, nix
- Language: Nix
- Homepage:
- Size: 12.7 KB
- Stars: 7
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```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).