vboot_reference: add meta attributes and cleanups
This commit is contained in:
parent
47b53fd084
commit
14912ca0b1
|
@ -1,13 +1,9 @@
|
||||||
{ stdenv, fetchgit, pkgconfig, libuuid, openssl }:
|
{ stdenv, fetchgit, pkgconfig, libuuid, openssl }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
arch = if stdenv.system == "x86_64-linux" then "x86_64"
|
|
||||||
else if stdenv.system == "i686-linux" then "x86"
|
|
||||||
else throw "vboot_reference for: ${stdenv.system} not supported!";
|
|
||||||
|
|
||||||
version = "20130507";
|
version = "20130507";
|
||||||
checkout = "25/50225/2";
|
checkout = "25/50225/2";
|
||||||
in stdenv.mkDerivation {
|
|
||||||
name = "vboot_reference-${version}";
|
name = "vboot_reference-${version}";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
|
@ -22,6 +18,10 @@ in stdenv.mkDerivation {
|
||||||
else [ (stdenv.lib.overrideDerivation libuuid
|
else [ (stdenv.lib.overrideDerivation libuuid
|
||||||
(args: { configureFlags = args.configureFlags + " --enable-static"; })) ]);
|
(args: { configureFlags = args.configureFlags + " --enable-static"; })) ]);
|
||||||
|
|
||||||
|
arch = if stdenv.system == "x86_64-linux" then "x86_64"
|
||||||
|
else if stdenv.system == "i686-linux" then "x86"
|
||||||
|
else throw "vboot_reference for: ${stdenv.system} not supported!";
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make ARCH=${arch} `pwd`/build/cgpt/cgpt
|
make ARCH=${arch} `pwd`/build/cgpt/cgpt
|
||||||
make ARCH=${arch} `pwd`/build/utility/vbutil_kernel
|
make ARCH=${arch} `pwd`/build/utility/vbutil_kernel
|
||||||
|
@ -38,4 +38,10 @@ in stdenv.mkDerivation {
|
||||||
cp build/utility/vbutil_keyblock $out/bin
|
cp build/utility/vbutil_keyblock $out/bin
|
||||||
cp build/utility/vbutil_firmware $out/bin
|
cp build/utility/vbutil_firmware $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Chrome OS partitioning and kernel signing tools.";
|
||||||
|
license = stdenv.lib.licenses.bsd3;
|
||||||
|
platforms = stdenv.lib.platforms.linux;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue