at 23.05-pre 35 lines 1.1 kB view raw
1{ lib, stdenv, fetchurl, openssl, perl, trousers, zlib }: 2 3stdenv.mkDerivation rec { 4 pname = "tboot"; 5 version = "1.10.5"; 6 7 src = fetchurl { 8 url = "mirror://sourceforge/tboot/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-O0vhbAPLwlBx7x1L2gtP1VDu2G2sbH9+/fAkI8VRs5M="; 10 }; 11 12 buildInputs = [ openssl trousers zlib ]; 13 14 enableParallelBuilding = true; 15 16 preConfigure = '' 17 substituteInPlace tboot/Makefile --replace /usr/bin/perl ${perl}/bin/perl 18 19 for a in lcptools-v2 tb_polgen utils; do 20 substituteInPlace "$a/Makefile" --replace /usr/sbin /sbin 21 done 22 substituteInPlace docs/Makefile --replace /usr/share /share 23 ''; 24 25 installFlags = [ "DESTDIR=$(out)" ]; 26 27 meta = with lib; { 28 description = "A 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" ]; 34 }; 35}