1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 09:03:48 +00:00
nixpkgs/pkgs/tools/security/libtpms/default.nix
Arthur Gautier 1cd06e59e0
libtpms: 0.7.4 -> 0.8.0 (#114491)
* libtpms: 0.7.4 -> 0.8.0

* libtpms: tpm2 support is out of experimental

Since db80bd9ea16894a1902c3ab787aea9d58e7d1e85 commit, tpm2 support is
not experimental anymore

Signed-off-by: Arthur Gautier <baloo@superbaloo.net>

* libtpms: remove extraneous output

Nothing was put in the $out output, remove the $lib and put everything
that was in it in the $out.

Signed-off-by: Arthur Gautier <baloo@superbaloo.net>

Co-authored-by: R. RyanTM <ryantm-bot@ryantm.com>
2021-03-03 13:59:28 -05:00

42 lines
861 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, pkg-config, autoreconfHook
, openssl, perl
}:
stdenv.mkDerivation rec {
pname = "libtpms";
version = "0.8.0";
src = fetchFromGitHub {
owner = "stefanberger";
repo = "libtpms";
rev = "v${version}";
sha256 = "sha256-/zvMXdAOb4J3YaqdVJvTUI1/JFC0OKwgiYwYgYB62Y4=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
perl # needed for pod2man
];
buildInputs = [ openssl ];
outputs = [ "out" "man" "dev" ];
enableParallelBuilding = true;
configureFlags = [
"--with-openssl"
"--with-tpm2"
];
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 ];
};
}