2014-08-12 18:38:15 +01:00
|
|
|
{ stdenv, fetchurl, trousers, openssl, zlib }:
|
2013-08-14 07:16:52 +01:00
|
|
|
|
2014-08-12 18:38:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-05-26 07:26:50 +01:00
|
|
|
name = "tboot-1.8.2";
|
2013-08-14 07:16:52 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-12 18:38:15 +01:00
|
|
|
url = "mirror://sourceforge/tboot/${name}.tar.gz";
|
2014-05-26 07:26:50 +01:00
|
|
|
sha256 = "1l9ccm7ik9fs7kzg1bjc5cjh0pcf4v0k1c84dmyr51r084i7p31m";
|
2013-08-14 07:16:52 +01: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 13:04:36 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 15:21:08 +01: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 13:04:36 +01:00
|
|
|
homepage = http://sourceforge.net/projects/tboot/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.ak ];
|
2014-05-26 07:26:50 +01:00
|
|
|
platforms = platforms.linux;
|
2014-04-22 13:04:36 +01:00
|
|
|
};
|
2013-08-14 07:16:52 +01:00
|
|
|
}
|
2014-08-12 18:38:15 +01:00
|
|
|
|