at 18.03-beta 36 lines 870 B view raw
1{ stdenv, fetchgit, iasl, flex, bison }: 2 3stdenv.mkDerivation rec { 4 name = "cbfstool-${version}"; 5 version = "4.7"; 6 7 src = fetchgit { 8 url = "http://review.coreboot.org/p/coreboot"; 9 rev = "refs/tags/${version}"; 10 sha256 = "02k63013vf7wgsilslj68fs1x81clvqpn91dydaqhv5aymh73zpi"; 11 }; 12 13 nativeBuildInputs = [ flex bison ]; 14 buildInputs = [ iasl ]; 15 16 buildPhase = '' 17 export LEX=${flex}/bin/flex 18 make -C util/cbfstool 19 ''; 20 21 installPhase = '' 22 mkdir -p $out/bin 23 cp util/cbfstool/cbfstool $out/bin 24 cp util/cbfstool/fmaptool $out/bin 25 cp util/cbfstool/rmodtool $out/bin 26 ''; 27 28 meta = with stdenv.lib; { 29 description = "Management utility for CBFS formatted ROM images"; 30 homepage = https://www.coreboot.org; 31 license = licenses.gpl2; 32 maintainers = [ maintainers.tstrobel ]; 33 platforms = platforms.linux; 34 }; 35} 36