9e85956c0d
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/tpm2-tools/versions
31 lines
834 B
Nix
31 lines
834 B
Nix
{ stdenv, fetchurl, lib
|
|
, cmocka, curl, pandoc, pkgconfig, openssl, tpm2-tss }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tpm2-tools";
|
|
version = "3.2.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/tpm2-software/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "057gg84zly6gjp6ypj6bv6zzmnr77cqsygl8x0147cylwa1ywydd";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|