nixpkgs/pkgs/os-specific/linux/ima-evm-utils/default.nix
2024-08-31 01:16:40 +00:00

55 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
openssl,
tpm2-tss,
keyutils,
asciidoc,
libxslt,
docbook_xsl,
}:
stdenv.mkDerivation rec {
pname = "ima-evm-utils";
version = "1.6.2";
src = fetchFromGitHub {
owner = "linux-integrity";
repo = "ima-evm-utils";
rev = "refs/tags/v${version}";
hash = "sha256-vIu12Flc2DiEqUSKAfoUi7Zg6D25pURvlYKEQKHER4I=";
};
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
asciidoc
libxslt
];
buildInputs = [
keyutils
openssl
tpm2-tss
];
env.MANPAGE_DOCBOOK_XSL = "${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl";
meta = {
description = "evmctl utility to manage digital signatures of the Linux kernel integrity subsystem (IMA/EVM)";
mainProgram = "evmctl";
homepage = "https://github.com/linux-integrity/ima-evm-utils";
license = with lib.licenses; [
lgpl2Plus # libimaevm
gpl2Plus # evmctl
];
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ nickcao ];
};
}