2021-05-03 20:48:10 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, perl, trousers, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tboot";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "1.10.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/tboot/${pname}-${version}.tar.gz";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-iEn6mZ0tuDBA1a2POpJEBaIM0TMVDohbVvp/6OO4nAY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
buildInputs = [ openssl trousers zlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace tboot/Makefile --replace /usr/bin/perl ${perl}/bin/perl
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
for a in lcptools-v2 tb_polgen utils; do
|
|
|
|
substituteInPlace "$a/Makefile" --replace /usr/sbin /sbin
|
2020-04-24 23:36:52 +00:00
|
|
|
done
|
|
|
|
substituteInPlace docs/Makefile --replace /usr/share /share
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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/";
|
2021-05-03 20:48:10 +00:00
|
|
|
changelog = "https://sourceforge.net/p/tboot/code/ci/v${version}/tree/CHANGELOG";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ak ];
|
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
};
|
|
|
|
}
|