2021-04-23 19:26:23 -07:00
|
|
|
{ lib, stdenv, fetchurl, openssl, perl, trousers, zlib }:
|
2013-08-13 23:16:52 -07:00
|
|
|
|
2014-08-12 10:38:15 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "tboot";
|
2021-04-23 19:26:23 -07:00
|
|
|
version = "1.10.1";
|
2013-08-13 23:16:52 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "mirror://sourceforge/tboot/${pname}-${version}.tar.gz";
|
2021-04-23 19:26:23 -07:00
|
|
|
sha256 = "18bnkwnlk16cc20nysqfcjx006idi7jmmhahk8vk09w458bhaajg";
|
2013-08-13 23:16:52 -07:00
|
|
|
};
|
|
|
|
|
2021-04-23 19:26:23 -07:00
|
|
|
buildInputs = [ openssl trousers zlib ];
|
2013-08-13 23:16:52 -07:00
|
|
|
|
2017-08-13 04:31:23 -07:00
|
|
|
enableParallelBuilding = true;
|
2013-08-13 23:16:52 -07:00
|
|
|
|
2021-04-23 19:26:23 -07:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace tboot/Makefile --replace /usr/bin/perl ${perl}/bin/perl
|
2019-11-03 05:11:40 -08:00
|
|
|
|
2021-04-23 19:26:23 -07:00
|
|
|
for a in lcptools-v2 tb_polgen utils; do
|
|
|
|
substituteInPlace "$a/Makefile" --replace /usr/sbin /sbin
|
2013-08-13 23:16:52 -07:00
|
|
|
done
|
|
|
|
substituteInPlace docs/Makefile --replace /usr/share /share
|
|
|
|
'';
|
2016-02-24 09:01:37 -08:00
|
|
|
|
2019-11-04 17:10:31 -08:00
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
2014-04-22 05:04:36 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2014-08-24 07:21:08 -07:00
|
|
|
description = "A pre-kernel/VMM module that uses Intel(R) TXT to perform a measured and verified launch of an OS kernel/VMM";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://sourceforge.net/projects/tboot/";
|
2021-04-23 19:26:23 -07:00
|
|
|
changelog = "https://sourceforge.net/p/tboot/code/ci/v${version}/tree/CHANGELOG";
|
2014-04-22 05:04:36 -07:00
|
|
|
license = licenses.bsd3;
|
2017-08-13 04:31:23 -07:00
|
|
|
maintainers = with maintainers; [ ak ];
|
2017-12-05 16:55:19 -08:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2014-04-22 05:04:36 -07:00
|
|
|
};
|
2013-08-13 23:16:52 -07:00
|
|
|
}
|