Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 32 lines 821 B view raw
1{ 2 fetchFromGitHub, 3 lib, 4 rustPlatform, 5 versionCheckHook, 6}: 7rustPlatform.buildRustPackage rec { 8 pname = "uesave"; 9 version = "0.6.2"; 10 src = fetchFromGitHub { 11 owner = "trumank"; 12 repo = "uesave-rs"; 13 rev = "v${version}"; 14 hash = "sha256-cwkeuHmtIS8zTxTSa1qLtWfN2OZinqKngMEYvrCCAk0="; 15 }; 16 17 cargoHash = "sha256-QGhaaBvxKYnljrkCCcFZLALppvM15c8Xtn36SecaNJ8="; 18 19 nativeInstallCheckInputs = [ 20 versionCheckHook 21 ]; 22 doInstallCheck = true; 23 versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}"; 24 25 meta = { 26 maintainers = with lib.maintainers; [ xddxdd ]; 27 description = "Reading and writing Unreal Engine save files (commonly referred to as GVAS)"; 28 homepage = "https://github.com/trumank/uesave-rs"; 29 license = lib.licenses.mit; 30 mainProgram = "uesave"; 31 }; 32}