Files
nixpkgs/pkgs/tools/system/vboot_reference/default.nix
T

43 lines
1.0 KiB
Nix
Raw Normal View History

2017-10-31 12:57:34 +01:00
{ stdenv, fetchgit, pkgconfig, libuuid, openssl, libyaml, lzma }:
stdenv.mkDerivation rec {
2018-03-16 02:29:45 +09:00
version = "20180311";
checkout = "4c84e077858c809ee80a9a6f9b38185cf7dcded7";
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}";
2018-03-16 02:29:45 +09:00
sha256 = "1zja4ma6flch08h5j2l1hqnxmw2xwylidnddxxd5y2x05dai9ddj";
};
nativeBuildInputs = [ pkgconfig ];
2017-10-31 12:57:34 +01:00
buildInputs = [ openssl libuuid libyaml lzma ];
2017-10-31 12:57:34 +01:00
enableParallelBuilding = true;
2017-11-07 00:34:44 -05:00
patches = [ ./dont_static_link.patch ];
preBuild = ''
2017-10-31 12:57:34 +01:00
patchShebangs scripts
'';
2017-11-07 00:34:44 -05:00
makeFlags = [
"DESTDIR=$(out)"
2018-02-27 12:48:39 +00:00
"HOST_ARCH=${stdenv.hostPlatform.parsed.cpu.name}"
2017-11-07 00:34:44 -05:00
];
postInstall = ''
2017-10-31 12:57:34 +01:00
mkdir -p $out/share/vboot
cp -r tests/devkeys* $out/share/vboot/
'';
2018-02-27 12:48:54 +00:00
meta = with stdenv.lib; {
2013-10-06 11:49:53 +02:00
description = "Chrome OS partitioning and kernel signing tools";
2018-02-27 12:48:54 +00:00
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ lheckemann ];
};
}