2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2019-05-14 09:02:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ctrtool";
|
2020-05-04 10:00:33 +00:00
|
|
|
version = "0.7";
|
2019-05-14 09:02:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-08-08 15:23:14 +00:00
|
|
|
owner = "jakcron";
|
2019-05-14 09:02:35 +00:00
|
|
|
repo = "Project_CTR";
|
2020-05-04 10:00:33 +00:00
|
|
|
rev = "ctrtool-v${version}";
|
|
|
|
sha256 = "07aayck82w5xcp3si35d7ghybmrbqw91fqqvmbpjrjcixc6m42z7";
|
2019-05-14 09:02:35 +00:00
|
|
|
};
|
|
|
|
|
2023-07-25 13:27:31 +00:00
|
|
|
sourceRoot = "${src.name}/ctrtool";
|
2019-05-14 09:02:35 +00:00
|
|
|
|
2020-05-04 10:00:33 +00:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "CXX=${stdenv.cc.targetPrefix}c++"];
|
2019-05-14 09:02:35 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
installPhase = "
|
|
|
|
mkdir $out/bin -p
|
2020-05-04 10:00:33 +00:00
|
|
|
cp ctrtool${stdenv.hostPlatform.extensions.executable} $out/bin/
|
2019-05-14 09:02:35 +00:00
|
|
|
";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-14 09:02:35 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
description = "A tool to extract data from a 3ds rom";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.marius851000 ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "ctrtool";
|
2019-05-14 09:02:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|