{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, nix-update-script, }: rustPlatform.buildRustPackage rec { pname = "snpguest"; version = "0.8.0"; src = fetchFromGitHub { owner = "virtee"; repo = "snpguest"; rev = "refs/tags/v${version}"; hash = "sha256-NqessN2yo7H17zWsnnI1oNIRG5Z1Wxi8oTWETP9DHpk="; }; cargoHash = "sha256-vhHlfGl6fSe8rKRv5u3iqomIlLpVKwOVbZDwuDgsdhs="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ]; env = { OPENSSL_NO_VENDOR = true; }; passthru.updateScript = nix-update-script { }; meta = { description = "CLI tool for interacting with SEV-SNP guest environment"; homepage = "https://github.com/virtee/snpguest"; changelog = "https://github.com/virtee/snpguest/releases/tag/v${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ katexochen ]; mainProgram = "snpguest"; platforms = [ "x86_64-linux" ]; }; }