Initial commit
This commit is contained in:
+40
@@ -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;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user