1 { lib, stdenv, fetchurl, openssl, perl, trousers, zlib }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/tboot/${pname}-${version}.tar.gz";
9 sha256 = "sha256-TIs/xLxLBkKBN0a0CRB2KMmCq8QgICH1++i485WDU3A=";
12 buildInputs = [ openssl trousers zlib ];
14 enableParallelBuilding = true;
17 substituteInPlace tboot/Makefile --replace /usr/bin/perl ${perl}/bin/perl
19 for a in lcptools-v2 tb_polgen utils; do
20 substituteInPlace "$a/Makefile" --replace /usr/sbin /sbin
22 substituteInPlace docs/Makefile --replace /usr/share /share
25 installFlags = [ "DESTDIR=$(out)" ];
28 description = "Pre-kernel/VMM module that uses Intel(R) TXT to perform a measured and verified launch of an OS kernel/VMM";
29 homepage = "https://sourceforge.net/projects/tboot/";
30 changelog = "https://sourceforge.net/p/tboot/code/ci/v${version}/tree/CHANGELOG";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ ak ];
33 platforms = [ "x86_64-linux" "i686-linux" ];