2019-02-02 23:30:16 +01:00
|
|
|
{ stdenv, fetchurl, iasl, flex, bison }:
|
2015-07-09 16:27:10 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cbfstool-${version}";
|
2019-02-02 23:30:16 +01:00
|
|
|
version = "4.9";
|
2015-07-09 16:27:10 +02:00
|
|
|
|
2019-02-02 23:30:16 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://coreboot.org/releases/coreboot-${version}.tar.xz";
|
|
|
|
sha256 = "0xkai65d3z9fivwscbkm7ndcw2p9g794xz8fwdv979w77n5qsdij";
|
2015-07-09 16:27:10 +02:00
|
|
|
};
|
|
|
|
|
2016-10-22 20:03:01 +02:00
|
|
|
nativeBuildInputs = [ flex bison ];
|
|
|
|
buildInputs = [ iasl ];
|
2016-02-09 02:00:21 +01:00
|
|
|
|
2015-07-09 16:27:10 +02: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 20:03:01 +02:00
|
|
|
description = "Management utility for CBFS formatted ROM images";
|
2017-08-17 23:58:28 +02:00
|
|
|
homepage = https://www.coreboot.org;
|
2015-07-09 16:27:10 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.tstrobel ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|