2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchurl, lib
|
2019-02-14 05:12:32 +00:00
|
|
|
, cmocka, curl, pandoc, pkgconfig, openssl, tpm2-tss }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tpm2-tools";
|
2019-07-03 02:53:01 +01:00
|
|
|
version = "3.2.0";
|
2019-02-14 05:12:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/tpm2-software/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
|
2019-07-03 02:53:01 +01:00
|
|
|
sha256 = "057gg84zly6gjp6ypj6bv6zzmnr77cqsygl8x0147cylwa1ywydd";
|
2019-02-14 05:12:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pandoc pkgconfig ];
|
|
|
|
buildInputs = [
|
|
|
|
curl openssl tpm2-tss
|
|
|
|
# For unit tests.
|
|
|
|
cmocka
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-unit" ];
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command line tools that provide access to a TPM 2.0 compatible device";
|
|
|
|
homepage = https://github.com/tpm2-software/tpm2-tools;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ delroth ];
|
|
|
|
};
|
|
|
|
}
|