Files
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

32 lines
793 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "cdecrypt";
version = "4.8";
src = fetchFromGitHub {
owner = "VitaSmith";
repo = "cdecrypt";
tag = "v${finalAttrs.version}";
hash = "sha256-PyT60RDyp1/Co/7WHC0+KrsnrDeTJ605x1pt4OmlGYg=";
};
installPhase = ''
install -Dm755 cdecrypt $out/bin/cdecrypt
'';
meta = {
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${finalAttrs.version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ hughobrien ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
};
})