nixpkgs/pkgs/applications/virtualization/cbfstool/default.nix

37 lines
869 B
Nix
Raw Normal View History

2015-07-09 15:27:10 +01:00
{ stdenv, fetchgit, iasl, flex, bison }:
stdenv.mkDerivation rec {
name = "cbfstool-${version}";
version = "4.5";
2015-07-09 15:27:10 +01:00
src = fetchgit {
url = "http://review.coreboot.org/p/coreboot";
rev = "refs/tags/${version}";
sha256 = "0sc2h440x4sfp1lqnmh3xfgymf7j0rqfx00v6jqf0svfbp8a6cq5";
2015-07-09 15:27:10 +01:00
};
nativeBuildInputs = [ flex bison ];
buildInputs = [ iasl ];
2016-02-09 01:00:21 +00:00
2015-07-09 15:27:10 +01: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; {
description = "Management utility for CBFS formatted ROM images";
2015-07-09 15:27:10 +01:00
homepage = http://www.coreboot.org;
license = licenses.gpl2;
maintainers = [ maintainers.tstrobel ];
platforms = platforms.linux;
};
}