summary refs log tree commit diff
path: root/pkgs/tools/archivers/ctrtool/default.nix
blob: 97abeadffc0953168e99a12f9b94a1634e971e99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "ctrtool";
  version = "0.16";

  src = fetchFromGitHub {
    owner  = "jakcron";
    repo   = "Project_CTR";
    rev    = "v${version}";
    sha256 = "1n3j3fd1bqd39v5bdl9mhq4qdrcl1k4ib1yzl3qfckaz3y8bkrap";
  };

  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 ];
  };

}