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