mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
tpm2-openssl: init at 1.2.0
This commit is contained in:
parent
dcd67b74f1
commit
c29744a0fe
46
pkgs/by-name/tp/tpm2-openssl/package.nix
Normal file
46
pkgs/by-name/tp/tpm2-openssl/package.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
autoreconfHook,
|
||||
fetchFromGitHub,
|
||||
autoconf-archive,
|
||||
pkg-config,
|
||||
openssl,
|
||||
tpm2-tss,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "tpm2-openssl";
|
||||
version = "1.2.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "tpm2-software";
|
||||
repo = "tpm2-openssl";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-mZ4Z/GxJFwwfyFd1SAiVlQqOjkFSzsZePeuEZtq8Mcg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
autoconf-archive
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
tpm2-tss
|
||||
];
|
||||
|
||||
configureFlags = [ "--with-modulesdir=$$out/lib/ossl-modules" ];
|
||||
|
||||
postPatch = ''
|
||||
echo ${finalAttrs.version} > VERSION
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "OpenSSL Provider for TPM2 integration";
|
||||
homepage = "https://github.com/tpm2-software/tpm2-openssl";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ stv0g ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user