tboot: 1.9.8 -> 1.10.1

https://sourceforge.net/p/tboot/code/ci/v1.10.1/tree/CHANGELOG
This commit is contained in:
TredwellGit
2021-04-24 02:26:23 +00:00
parent bbffc43d56
commit 688ed16f00
2 changed files with 9 additions and 62 deletions
+9 -12
View File
@@ -1,27 +1,23 @@
{ lib, stdenv, fetchurl, trousers, openssl, zlib }:
{ lib, stdenv, fetchurl, openssl, perl, trousers, zlib }:
stdenv.mkDerivation rec {
pname = "tboot";
version = "1.9.8";
version = "1.10.1";
src = fetchurl {
url = "mirror://sourceforge/tboot/${pname}-${version}.tar.gz";
sha256 = "06f0ggl6vrb5ghklblvh2ixgmmjv31rkp1vfj9qm497iqwq9ac00";
sha256 = "18bnkwnlk16cc20nysqfcjx006idi7jmmhahk8vk09w458bhaajg";
};
patches = [ ./tboot-add-well-known-secret-option-to-lcp_writepol.patch ];
buildInputs = [ trousers openssl zlib ];
buildInputs = [ openssl trousers zlib ];
enableParallelBuilding = true;
hardeningDisable = [ "pic" "stackprotector" ];
preConfigure = ''
substituteInPlace tboot/Makefile --replace /usr/bin/perl ${perl}/bin/perl
NIX_CFLAGS_COMPILE = [ "-Wno-error=address-of-packed-member" ];
configurePhase = ''
for a in lcptools utils tb_polgen; do
substituteInPlace $a/Makefile --replace /usr/sbin /sbin
for a in lcptools-v2 tb_polgen utils; do
substituteInPlace "$a/Makefile" --replace /usr/sbin /sbin
done
substituteInPlace docs/Makefile --replace /usr/share /share
'';
@@ -31,6 +27,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "A pre-kernel/VMM module that uses Intel(R) TXT to perform a measured and verified launch of an OS kernel/VMM";
homepage = "https://sourceforge.net/projects/tboot/";
changelog = "https://sourceforge.net/p/tboot/code/ci/v${version}/tree/CHANGELOG";
license = licenses.bsd3;
maintainers = with maintainers; [ ak ];
platforms = [ "x86_64-linux" "i686-linux" ];