about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/cdecrypt/default.nix
blob: 9f742a34a002ef758e08ad3637245f71e25716f4 (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
{ lib
, stdenv
, fetchFromGitHub
}:

stdenv.mkDerivation rec {
  pname = "cdecrypt";
  version = "4.8";

  src = fetchFromGitHub {
    owner = "VitaSmith";
    repo = "cdecrypt";
    rev = "refs/tags/v${version}";
    hash = "sha256-PyT60RDyp1/Co/7WHC0+KrsnrDeTJ605x1pt4OmlGYg=";
  };

  installPhase = ''
    install -Dm755 cdecrypt $out/bin/cdecrypt
  '';

  meta = with lib; {
    description = "A utility that decrypts Wii U NUS content files";
    mainProgram = "cdecrypt";
    homepage = "https://github.com/VitaSmith/cdecrypt";
    changelog = "https://github.com/VitaSmith/cdecrypt/releases/tag/v${version}";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ hughobrien ];
    platforms = platforms.linux ++ platforms.darwin;
  };
}