diff options
author | Thomas Strobel <ts468@cam.ac.uk> | 2015-07-09 16:27:10 +0200 |
---|---|---|
committer | Thomas Strobel <ts468@cam.ac.uk> | 2015-07-15 10:50:58 +0200 |
commit | 90cad1bc0cf785dd3a1a74e1308122ff3c74ae52 (patch) | |
tree | 3f5e50fbfdec446e7733cc17fa3a221fc76d736d /pkgs/applications/virtualization | |
parent | df038c93cc823fef9ceb547e3d635317bdd7d39e (diff) | |
download | nixlib-90cad1bc0cf785dd3a1a74e1308122ff3c74ae52.tar nixlib-90cad1bc0cf785dd3a1a74e1308122ff3c74ae52.tar.gz nixlib-90cad1bc0cf785dd3a1a74e1308122ff3c74ae52.tar.bz2 nixlib-90cad1bc0cf785dd3a1a74e1308122ff3c74ae52.tar.lz nixlib-90cad1bc0cf785dd3a1a74e1308122ff3c74ae52.tar.xz nixlib-90cad1bc0cf785dd3a1a74e1308122ff3c74ae52.tar.zst nixlib-90cad1bc0cf785dd3a1a74e1308122ff3c74ae52.zip |
cbfstool: init at git-2015-07-09
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r-- | pkgs/applications/virtualization/cbfstool/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/cbfstool/default.nix b/pkgs/applications/virtualization/cbfstool/default.nix new file mode 100644 index 000000000000..d99f569d7e6b --- /dev/null +++ b/pkgs/applications/virtualization/cbfstool/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchgit, iasl, flex, bison }: + +stdenv.mkDerivation rec { + name = "cbfstool-${version}"; + version = "git-2015-07-09"; + + src = fetchgit { + url = "http://review.coreboot.org/p/coreboot"; + rev = "5d866213f42fd22aed80abb5a91d74f6d485ac3f"; + sha256 = "148155829jbabsgg1inmcpqmwbg0fgp8a685bzybv9j4ibasi0z2"; + }; + + buildInputs = [ iasl flex bison ]; + + 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 = "CBFS tool"; + homepage = http://www.coreboot.org; + license = licenses.gpl2; + maintainers = [ maintainers.tstrobel ]; + platforms = platforms.linux; + }; +} + |