1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5}:
6
7stdenv.mkDerivation rec {
8 pname = "cdecrypt";
9 version = "4.8";
10
11 src = fetchFromGitHub {
12 owner = "VitaSmith";
13 repo = "cdecrypt";
14 tag = "v${version}";
15 hash = "sha256-PyT60RDyp1/Co/7WHC0+KrsnrDeTJ605x1pt4OmlGYg=";
16 };
17
18 installPhase = ''
19 install -Dm755 cdecrypt $out/bin/cdecrypt
20 '';
21
22 meta = {
23 description = "Utility that decrypts Wii U NUS content files";
24 mainProgram = "cdecrypt";
25 homepage = "https://github.com/VitaSmith/cdecrypt";
26 changelog = "https://github.com/VitaSmith/cdecrypt/releases/tag/v${version}";
27 license = lib.licenses.gpl3Plus;
28 maintainers = with lib.maintainers; [ hughobrien ];
29 platforms = lib.platforms.linux ++ lib.platforms.darwin;
30 };
31}