26 lines
697 B
Nix
26 lines
697 B
Nix
{
|
|
description = "Nix flake for building and developing 3DS projects";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
devkitnix.url = "github:toast003/devkitnix";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, devkitnix }:
|
|
let
|
|
system = "x86_64-linux";
|
|
devkitARM = devkitnix.outputs.packages.${system}.devkitARM;
|
|
in
|
|
{
|
|
devShells.${system}.default = nixpkgs.legacyPackages.${system}.mkShell {
|
|
name = "3ds-devshell";
|
|
packages = with nixpkgs.legacyPackages.${system}; [
|
|
gnumake
|
|
];
|
|
shellHook = ''
|
|
export DEVKITPRO=${devkitARM}
|
|
export DEVKITARM=${devkitARM}/devkitARM
|
|
'';
|
|
};
|
|
};
|
|
}
|