uesave: init at 0.5.0 (#312965)

This commit is contained in:
Aleksana 2024-11-03 11:28:13 +08:00 committed by GitHub
commit 4fc48e75eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,32 @@
{
fetchFromGitHub,
lib,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "uesave";
version = "0.5.0";
src = fetchFromGitHub {
owner = "trumank";
repo = "uesave-rs";
rev = "v${version}";
hash = "sha256-9gOOSLejVfR1KJMhcNuKDkuTOvPC6sNG8xQOZlt8NxI=";
};
cargoHash = "sha256-U6RzSS2j6FK70OHlmWmHZZYT3UB0+Hi+uLofLy+XtGQ=";
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
meta = {
maintainers = with lib.maintainers; [ xddxdd ];
description = "Reading and writing Unreal Engine save files (commonly referred to as GVAS)";
homepage = "https://github.com/trumank/uesave-rs";
license = lib.licenses.mit;
mainProgram = "uesave";
};
}