mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{ stdenv, lib, fetchFromGitHub
|
|
, autoreconfHook, autoconf-archive, pkg-config, doxygen, perl
|
|
, openssl, json_c, curl, libgcrypt
|
|
, cmocka, uthash, ibm-sw-tpm2, iproute, procps, which
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tpm2-tss";
|
|
version = "2.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tpm2-software";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "09x5czaj4a8cyf8cxavcasx3yy1kik1s45a90c7zvxb7y1kfp9zs";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook autoconf-archive pkg-config doxygen perl
|
|
];
|
|
buildInputs = [ openssl json_c curl libgcrypt ];
|
|
checkInputs = [
|
|
cmocka uthash ibm-sw-tpm2 iproute procps which
|
|
];
|
|
|
|
preAutoreconf = "./bootstrap";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postPatch = "patchShebangs script";
|
|
|
|
configureFlags = [
|
|
"--enable-unit"
|
|
"--enable-integration"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
postInstall = ''
|
|
# Do not install the upstream udev rules, they rely on specific
|
|
# users/groups which aren't guaranteed to exist on the system.
|
|
rm -R $out/lib/udev
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "OSS implementation of the TCG TPM2 Software Stack (TSS2)";
|
|
homepage = "https://github.com/tpm2-software/tpm2-tss";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ delroth ];
|
|
};
|
|
}
|