Merge pull request #299626 from stv0g/add-tpm2-openssl

authored by Sandro and committed by GitHub fd622574 ece43f6c

+46
+46
pkgs/by-name/tp/tpm2-openssl/package.nix
··· 1 + { 2 + stdenv, 3 + lib, 4 + autoreconfHook, 5 + fetchFromGitHub, 6 + autoconf-archive, 7 + pkg-config, 8 + openssl, 9 + tpm2-tss, 10 + }: 11 + 12 + stdenv.mkDerivation (finalAttrs: { 13 + pname = "tpm2-openssl"; 14 + version = "1.2.0"; 15 + src = fetchFromGitHub { 16 + owner = "tpm2-software"; 17 + repo = "tpm2-openssl"; 18 + rev = finalAttrs.version; 19 + hash = "sha256-mZ4Z/GxJFwwfyFd1SAiVlQqOjkFSzsZePeuEZtq8Mcg="; 20 + }; 21 + 22 + nativeBuildInputs = [ 23 + autoreconfHook 24 + autoconf-archive 25 + pkg-config 26 + ]; 27 + 28 + buildInputs = [ 29 + openssl 30 + tpm2-tss 31 + ]; 32 + 33 + configureFlags = [ "--with-modulesdir=$$out/lib/ossl-modules" ]; 34 + 35 + postPatch = '' 36 + echo ${finalAttrs.version} > VERSION 37 + ''; 38 + 39 + meta = with lib; { 40 + description = "OpenSSL Provider for TPM2 integration"; 41 + homepage = "https://github.com/tpm2-software/tpm2-openssl"; 42 + license = licenses.bsd3; 43 + maintainers = with maintainers; [ stv0g ]; 44 + platforms = platforms.linux; 45 + }; 46 + })