Merge pull request #334594 from katexochen/snpguest/init

snpguest: init at 0.6.0
This commit is contained in:
Paul Meyer 2024-08-16 16:32:09 +02:00 committed by GitHub
commit f910a99dc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,42 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "snpguest";
version = "0.6.0";
src = fetchFromGitHub {
owner = "virtee";
repo = "snpguest";
rev = "v${version}";
hash = "sha256-9TchRaZPQKAsncs+mlHvzeie9IIVZeea/LfBLXOLuNg=";
};
cargoHash = "sha256-1UX5GiwH38W+IgZO+0EA3M86iWMylM8fgr48DRD187A=";
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" ];
};
}