summary refs log tree commit diff
path: root/pkgs/tools/archivers/ctrtool
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/archivers/ctrtool')
-rw-r--r--pkgs/tools/archivers/ctrtool/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/archivers/ctrtool/default.nix b/pkgs/tools/archivers/ctrtool/default.nix
new file mode 100644
index 00000000000..288a2a31ed0
--- /dev/null
+++ b/pkgs/tools/archivers/ctrtool/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  pname = "ctrtool";
+  version = "0.15";
+
+  src = fetchFromGitHub {
+    owner  = "profi200";
+    repo   = "Project_CTR";
+    rev    = version;
+    sha256 = "1l6z05x18s1crvb283yvynlwsrpa1pdx1nbijp99plw06p88h4va";
+  };
+
+  sourceRoot = "source/ctrtool";
+
+  enableParallelBuilding = true;
+
+  installPhase = "
+    mkdir $out/bin -p
+    cp ctrtool $out/bin/ctrtool
+  ";
+
+  meta = with stdenv.lib; {
+    license = licenses.mit;
+    description = "A tool to extract data from a 3ds rom";
+    platforms = platforms.linux;
+    maintainers = [ maintainers.marius851000 ];
+  };
+
+}