Initial commit

This commit is contained in:
2026-08-17 17:56:20 -04:00
commit 490d24b18d
5 changed files with 141 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# nix files
[*.nix]
indent_style = space
indent_size = 2
+3
View File
@@ -0,0 +1,3 @@
# makerom-nixos
A CLI tool to create CTR (Nintendo 3DS) ROM images
Generated
+61
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": 1786862985,
"narHash": "sha256-FBJRXmbGXiSUDvYEbfLYRkckayyZ6SK1UEqhCrIZ2Cs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "e5bdc4a41d4c072fe1e3787eaa0320a384741d44",
"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
}
+22
View File
@@ -0,0 +1,22 @@
{
description = "makerom - CTR (Nintendo 3DS) ROM image builder";
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 = nixpkgs.legacyPackages.${system};
in {
overlays.default = { invoiceninja = pkgs.callPackage ./package.nix { }; };
packages = {
makerom = pkgs.callPackage ./package.nix { };
default = pkgs.callPackage ./package.nix { };
};
}
);
}
+40
View File
@@ -0,0 +1,40 @@
{ fetchFromGitHub, lib, stdenv }:
stdenv.mkDerivation (finalAttrs: {
pname = "makerom";
version = "0.19.0";
src = fetchFromGitHub {
owner = "3DSGuy";
repo = "Project_CTR";
rev = "makerom-v${finalAttrs.version}";
hash = "sha256-GvEzv97DqCsaDWVqDpajQRWYe+WM8xCYmGE0D3UcSrM=";
};
buildPhase = ''
runHook preBuild
cd makerom
make deps
make
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir $out
mv bin deps $out/
runHook postInstall
'';
meta = {
description = "CLI tool to create CTR (Nintendo 3DS) ROM images";
homepage = "https://github.com/3DSGuy/Project_CTR";
license = lib.licenses.mit; # verify against the repo's LICENSE
mainProgram = "makerom";
platforms = lib.platforms.unix;
};
})