libtpms: init at 0.7.4
Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
This commit is contained in:
parent
0befb42b67
commit
7777e229a1
43
pkgs/tools/security/libtpms/default.nix
Normal file
43
pkgs/tools/security/libtpms/default.nix
Normal file
@ -0,0 +1,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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -15588,6 +15588,8 @@ in
|
|||||||
libtoxcore_0_1 libtoxcore_0_2;
|
libtoxcore_0_1 libtoxcore_0_2;
|
||||||
libtoxcore = libtoxcore_0_2;
|
libtoxcore = libtoxcore_0_2;
|
||||||
|
|
||||||
|
libtpms = callPackage ../tools/security/libtpms { };
|
||||||
|
|
||||||
libtap = callPackage ../development/libraries/libtap { };
|
libtap = callPackage ../development/libraries/libtap { };
|
||||||
|
|
||||||
libtgvoip = callPackage ../development/libraries/libtgvoip { };
|
libtgvoip = callPackage ../development/libraries/libtgvoip { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user