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
+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;
};
})