about summary refs log tree commit diff
path: root/pkgs/tools/archivers/ctrtool/default.nix
blob: 288a2a31ed05e8f8c6eed0ddceb896a22230c08b (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.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 ];
  };

}