lol
1{ stdenv, fetchurl, trousers, openssl, zlib }:
2
3stdenv.mkDerivation rec {
4 name = "tboot-1.8.2";
5
6 src = fetchurl {
7 url = "mirror://sourceforge/tboot/${name}.tar.gz";
8 sha256 = "1l9ccm7ik9fs7kzg1bjc5cjh0pcf4v0k1c84dmyr51r084i7p31m";
9 };
10
11 buildInputs = [ trousers openssl zlib ];
12
13 patches = [ ./tboot-add-well-known-secret-option-to-lcp_writepol.patch ];
14
15 hardeningDisable = [ "pic" "stackprotector" ];
16
17 configurePhase = ''
18 for a in lcptools utils tb_polgen; do
19 substituteInPlace $a/Makefile --replace /usr/sbin /sbin
20 done
21 substituteInPlace docs/Makefile --replace /usr/share /share
22 '';
23
24 installFlags = "DESTDIR=$(out)";
25
26 meta = with stdenv.lib; {
27 description = "A pre-kernel/VMM module that uses Intel(R) TXT to perform a measured and verified launch of an OS kernel/VMM";
28 homepage = http://sourceforge.net/projects/tboot/;
29 license = licenses.bsd3;
30 maintainers = [ maintainers.ak ];
31 platforms = platforms.linux;
32 };
33}
34