depot/third_party/nixpkgs/pkgs/development/tools/cdecrypt/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
760 B
Nix

{ 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 = "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;
};
}