nixos/fileSystems: link to mount(8) from fileSystems.*.options (#377170)
[NixPkgs.git] / pkgs / by-name / tp / tpm2-openssl / package.nix
bloba3a36bf24a3e27c22ad7c290845e33a8a823fcba
2   stdenv,
3   lib,
4   autoreconfHook,
5   fetchFromGitHub,
6   autoconf-archive,
7   nix-update-script,
8   pkg-config,
9   openssl,
10   tpm2-tss,
13 stdenv.mkDerivation (finalAttrs: {
14   pname = "tpm2-openssl";
15   version = "1.3.0";
16   src = fetchFromGitHub {
17     owner = "tpm2-software";
18     repo = "tpm2-openssl";
19     rev = finalAttrs.version;
20     hash = "sha256-CCTR7qBqI/y+jLBEEcgRanYOBNUYM/sH/hCqOLGA4QM=";
21   };
23   nativeBuildInputs = [
24     autoreconfHook
25     autoconf-archive
26     pkg-config
27   ];
29   buildInputs = [
30     openssl
31     tpm2-tss
32   ];
34   configureFlags = [ "--with-modulesdir=$$out/lib/ossl-modules" ];
36   postPatch = ''
37     echo ${finalAttrs.version} > VERSION
38   '';
40   passthru.updateScript = nix-update-script { };
42   meta = with lib; {
43     description = "OpenSSL Provider for TPM2 integration";
44     homepage = "https://github.com/tpm2-software/tpm2-openssl";
45     license = licenses.bsd3;
46     maintainers = with maintainers; [ stv0g ];
47     platforms = platforms.linux;
48   };