2019-10-26 12:45:30 +01:00
|
|
|
{ stdenv, fetchurl, lib
|
|
|
|
, tpm2-tss, pkgconfig, glib, which, dbus, cmocka }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tpm2-abrmd";
|
|
|
|
version = "2.2.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/tpm2-software/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1lbfhyyh9k54r8s1h8ca2czxv4hg0yq984kdh3vqh3990aca0x9a";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [
|
|
|
|
tpm2-tss glib which dbus cmocka
|
|
|
|
];
|
|
|
|
|
|
|
|
# Unit tests are currently broken as the check phase attempts to start a dbus daemon etc.
|
|
|
|
#configureFlags = [ "--enable-unit" ];
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "TPM2 resource manager, accessible via D-Bus";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tpm2-software/tpm2-tools";
|
2019-10-26 12:45:30 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ lschuermann ];
|
|
|
|
};
|
|
|
|
}
|