3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/tpm2-abrmd/default.nix
2019-10-26 14:47:20 +02:00

30 lines
872 B
Nix

{ 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";
homepage = https://github.com/tpm2-software/tpm2-tools;
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ lschuermann ];
};
}