2014-08-12 19:38:15 +02:00
|
|
|
{ stdenv, fetchurl, trousers, openssl, zlib }:
|
2013-08-14 08:16:52 +02:00
|
|
|
|
2014-08-12 19:38:15 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-05-26 08:26:50 +02:00
|
|
|
name = "tboot-1.8.2";
|
2013-08-14 08:16:52 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-12 19:38:15 +02:00
|
|
|
url = "mirror://sourceforge/tboot/${name}.tar.gz";
|
2014-05-26 08:26:50 +02:00
|
|
|
sha256 = "1l9ccm7ik9fs7kzg1bjc5cjh0pcf4v0k1c84dmyr51r084i7p31m";
|
2013-08-14 08:16:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ trousers openssl zlib ];
|
|
|
|
|
|
|
|
patches = [ ./tboot-add-well-known-secret-option-to-lcp_writepol.patch ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
for a in lcptools utils tb_polgen; do
|
|
|
|
substituteInPlace $a/Makefile --replace /usr/sbin /sbin
|
|
|
|
done
|
|
|
|
substituteInPlace docs/Makefile --replace /usr/share /share
|
|
|
|
'';
|
|
|
|
installFlags = "DESTDIR=$(out)";
|
2014-04-22 14:04:36 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "A pre-kernel/VMM module that uses Intel(R) TXT to perform a measured and verified launch of an OS kernel/VMM";
|
2014-04-22 14:04:36 +02:00
|
|
|
homepage = http://sourceforge.net/projects/tboot/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.ak ];
|
2014-05-26 08:26:50 +02:00
|
|
|
platforms = platforms.linux;
|
2014-04-22 14:04:36 +02:00
|
|
|
};
|
2013-08-14 08:16:52 +02:00
|
|
|
}
|
2014-08-12 19:38:15 +02:00
|
|
|
|