Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 autoreconfHook, 7 openssl, 8 perl, 9}: 10 11stdenv.mkDerivation rec { 12 pname = "libtpms"; 13 version = "0.10.1"; 14 15 src = fetchFromGitHub { 16 owner = "stefanberger"; 17 repo = "libtpms"; 18 rev = "v${version}"; 19 sha256 = "sha256-uj06cAhepTOFxSeiBY/UVP/rtBQHLvrODe4ljU6ALOE="; 20 }; 21 22 hardeningDisable = [ "strictflexarrays3" ]; 23 24 nativeBuildInputs = [ 25 autoreconfHook 26 pkg-config 27 perl # needed for pod2man 28 ]; 29 buildInputs = [ openssl ]; 30 31 outputs = [ 32 "out" 33 "man" 34 "dev" 35 ]; 36 37 enableParallelBuilding = true; 38 39 configureFlags = [ 40 "--with-openssl" 41 "--with-tpm2" 42 ]; 43 44 meta = with lib; { 45 description = "Libtpms library provides software emulation of a Trusted Platform Module (TPM 1.2 and TPM 2.0)"; 46 homepage = "https://github.com/stefanberger/libtpms"; 47 license = licenses.bsd3; 48 maintainers = [ maintainers.baloo ]; 49 }; 50}