depot/third_party/nixpkgs/pkgs/os-specific/linux/ima-evm-utils/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

54 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";
src = fetchFromGitHub {
owner = "linux-integrity";
repo = "ima-evm-utils";
rev = "refs/tags/v${version}";
hash = "sha256-rS2KChYKHnaR17VKYXyb28AsWnLZ8CRoHhLOUejO8Z8=";
};
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 ];
};
}