mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
agari: init at 0.24.0
https://github.com/agari-industries/agari Assisted-by: nix-init
This commit is contained in:
43
pkgs/by-name/ag/agari/package.nix
Normal file
43
pkgs/by-name/ag/agari/package.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
python3,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "agari";
|
||||
version = "0.24.0";
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "agari-industries";
|
||||
repo = "agari";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-okJ1AJ0hVAkK9E9DXm6s+LO5moPiRdswhpDt2tDxego=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-52zuMizvGVMleFHXu3rKaq+7B6PbsrJtQoPPvDUBcv8=";
|
||||
|
||||
nativeBuildInputs = [ python3 ];
|
||||
|
||||
cargoBuildFlags = [
|
||||
"--package=agari"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Comprehensive Riichi Mahjong scoring engine";
|
||||
homepage = "https://github.com/agari-industries/agari";
|
||||
changelog = "https://github.com/agari-industries/agari/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ Br1ght0ne ];
|
||||
mainProgram = "agari";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user