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