2015-07-09 14:27:10 +00:00
|
|
|
{ stdenv, fetchgit, iasl, flex, bison }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cbfstool-${version}";
|
2018-03-03 20:01:28 +00:00
|
|
|
version = "4.7";
|
2015-07-09 14:27:10 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "http://review.coreboot.org/p/coreboot";
|
2016-10-22 18:03:01 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2018-03-03 20:01:28 +00:00
|
|
|
sha256 = "02k63013vf7wgsilslj68fs1x81clvqpn91dydaqhv5aymh73zpi";
|
2015-07-09 14:27:10 +00:00
|
|
|
};
|
|
|
|
|
2016-10-22 18:03:01 +00:00
|
|
|
nativeBuildInputs = [ flex bison ];
|
|
|
|
buildInputs = [ iasl ];
|
2016-02-09 01:00:21 +00:00
|
|
|
|
2015-07-09 14:27:10 +00:00
|
|
|
buildPhase = ''
|
|
|
|
export LEX=${flex}/bin/flex
|
|
|
|
make -C util/cbfstool
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp util/cbfstool/cbfstool $out/bin
|
|
|
|
cp util/cbfstool/fmaptool $out/bin
|
|
|
|
cp util/cbfstool/rmodtool $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-10-22 18:03:01 +00:00
|
|
|
description = "Management utility for CBFS formatted ROM images";
|
2017-08-17 21:58:28 +00:00
|
|
|
homepage = https://www.coreboot.org;
|
2015-07-09 14:27:10 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.tstrobel ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|