2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ctrtool";
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "0.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jakcron";
|
|
|
|
repo = "Project_CTR";
|
2020-11-24 20:58:05 +00:00
|
|
|
rev = "ctrtool-v${version}";
|
|
|
|
sha256 = "07aayck82w5xcp3si35d7ghybmrbqw91fqqvmbpjrjcixc6m42z7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "source/ctrtool";
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "CXX=${stdenv.cc.targetPrefix}c++"];
|
2020-04-24 23:36:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = "
|
|
|
|
mkdir $out/bin -p
|
2020-11-24 20:58:05 +00:00
|
|
|
cp ctrtool${stdenv.hostPlatform.extensions.executable} $out/bin/
|
2020-04-24 23:36:52 +00:00
|
|
|
";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.mit;
|
|
|
|
description = "A tool to extract data from a 3ds rom";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.marius851000 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|