nixpkgs/pkgs/tools/system/vboot_reference/default.nix
Benjamin Staffin 7ccad2a4f2
vboot_reference: build all the tools
This expands the build to include more things that are useful on
chromebooks, like `crossystem`
2017-11-07 00:37:48 -05:00

40 lines
916 B
Nix

{ stdenv, fetchgit, pkgconfig, libuuid, openssl, libyaml, lzma }:
stdenv.mkDerivation rec {
version = "20171023";
checkout = "8122e0b8b13794";
name = "vboot_reference-${version}";
src = fetchgit {
url = https://chromium.googlesource.com/chromiumos/platform/vboot_reference;
rev = "${checkout}";
sha256 = "0qxm3qlvm2fgjrn9b3n8rdccw2f5pdi7z542m2hdfddflx7jz1w7";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl libuuid libyaml lzma ];
enableParallelBuilding = true;
patches = [ ./dont_static_link.patch ];
preBuild = ''
patchShebangs scripts
'';
makeFlags = [
"DESTDIR=$(out)"
];
postInstall = ''
mkdir -p $out/share/vboot
cp -r tests/devkeys* $out/share/vboot/
'';
meta = {
description = "Chrome OS partitioning and kernel signing tools";
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.linux;
};
}