Added a 3DS homebrew flake

This commit is contained in:
Alexandre 2026-04-26 15:31:09 +02:00
parent 0231c266f8
commit f530038c1c
3 changed files with 105 additions and 0 deletions

3
dev-flakes/3DS/.envrc Normal file
View File

@ -0,0 +1,3 @@
FLAKEDIR=~/Developer/nix/NixOSDots/dev-flakes
use flake ${FLAKEDIR}/3DS

61
dev-flakes/3DS/flake.lock generated Normal file
View File

@ -0,0 +1,61 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1776877367,
"narHash": "sha256-EHq1/OX139R1RvBzOJ0aMRT3xnWyqtHBRUBuO1gFzjI=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0726a0ecb6d4e08f6adced58726b95db924cef57",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

41
dev-flakes/3DS/flake.nix Normal file
View File

@ -0,0 +1,41 @@
{
description = "3DS Homebrew dev environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
dkp = pkgs.devkitpro;
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [
dkp.devkitARM
dkp.libctru
dkp.citro3d
dkp.citro2d
pkgs.gnumake
pkgs.python3
pkgs.azahar # 3DS emulator
];
shellHook = ''
export DEVKITPRO=${dkp}
export DEVKITARM=${dkp.devkitARM}
export PATH=$DEVKITARM/bin:$PATH
echo "devkitARM ready: $(arm-none-eabi-gcc --version | head -1)"
'';
};
}
);
}