2017-10-31 04:57:34 -07:00
|
|
|
{ stdenv, fetchgit, pkgconfig, libuuid, openssl, libyaml, lzma }:
|
2013-05-27 03:10:19 -07:00
|
|
|
|
2013-08-28 12:52:07 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2017-10-31 04:57:34 -07:00
|
|
|
version = "20171023";
|
|
|
|
checkout = "8122e0b8b13794";
|
2013-08-28 12:52:07 -07:00
|
|
|
|
2013-05-27 03:10:19 -07:00
|
|
|
name = "vboot_reference-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
2015-09-01 02:09:18 -07:00
|
|
|
url = https://chromium.googlesource.com/chromiumos/platform/vboot_reference;
|
2017-10-31 04:57:34 -07:00
|
|
|
rev = "${checkout}";
|
|
|
|
sha256 = "0qxm3qlvm2fgjrn9b3n8rdccw2f5pdi7z542m2hdfddflx7jz1w7";
|
2013-05-27 03:10:19 -07:00
|
|
|
};
|
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2017-10-31 04:57:34 -07:00
|
|
|
buildInputs = [ openssl libuuid libyaml lzma ];
|
2013-05-27 03:10:19 -07:00
|
|
|
|
2017-10-31 04:57:34 -07:00
|
|
|
enableParallelBuilding = true;
|
2013-08-28 12:52:07 -07:00
|
|
|
|
2017-11-06 21:34:44 -08:00
|
|
|
patches = [ ./dont_static_link.patch ];
|
|
|
|
|
|
|
|
preBuild = ''
|
2017-10-31 04:57:34 -07:00
|
|
|
patchShebangs scripts
|
2013-05-27 03:10:19 -07:00
|
|
|
'';
|
|
|
|
|
2017-11-06 21:34:44 -08:00
|
|
|
makeFlags = [
|
|
|
|
"DESTDIR=$(out)"
|
2018-02-27 04:48:39 -08:00
|
|
|
"HOST_ARCH=${stdenv.hostPlatform.parsed.cpu.name}"
|
2017-11-06 21:34:44 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2017-10-31 04:57:34 -07:00
|
|
|
mkdir -p $out/share/vboot
|
|
|
|
cp -r tests/devkeys* $out/share/vboot/
|
2013-05-27 03:10:19 -07:00
|
|
|
'';
|
2013-08-28 12:52:07 -07:00
|
|
|
|
2018-02-27 04:48:54 -08:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 02:49:53 -07:00
|
|
|
description = "Chrome OS partitioning and kernel signing tools";
|
2018-02-27 04:48:54 -08:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ lheckemann ];
|
2013-08-28 12:52:07 -07:00
|
|
|
};
|
2013-05-27 03:10:19 -07:00
|
|
|
}
|