depot/pkgs/by-name/ue/uesave/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
821 B
Nix

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