blob: 71966a934d6241c5216355774d607a1ca5fe2857 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{ lib
, stdenv
, fetchFromGitHub
, pkg-config, autoreconfHook
, openssl, perl
, tpm2Support ? false
}:
stdenv.mkDerivation rec {
pname = "libtpms";
version = "0.7.4";
src = fetchFromGitHub {
owner = "stefanberger";
repo = "libtpms";
rev = "v${version}";
sha256 = "sha256-nZSBD3WshlZHVMBFmDBBdFkhBjNgtASfg6+lYOOAhZ8=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
perl # needed for pod2man
];
buildInputs = [ openssl ];
outputs = [ "out" "lib" "man" "dev" ];
enableParallelBuilding = true;
configureFlags = [
"--with-openssl"
] ++ lib.optionals tpm2Support [
"--with-tpm2" # TPM2 support is flagged experimental by upstream
];
meta = with lib; {
description = "The libtpms library provides software emulation of a Trusted Platform Module (TPM 1.2 and TPM 2.0)";
homepage = "https://github.com/stefanberger/libtpms";
license = licenses.bsd3;
maintainers = [ maintainers.baloo ];
};
}
|