nixpkgs/pkgs/development/tools/cdecrypt/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
762 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 = "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;
};
}