Skip to content

Commit

Permalink
Merge pull request NixOS#55066 from petabyteboy/feature/ifdtool
Browse files Browse the repository at this point in the history
ifdtool: init at 4.9
  • Loading branch information
flokli committed Feb 2, 2019
2 parents c6bb6dd + 8ad32a7 commit a9bf045
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3485,6 +3485,11 @@
github = "pesterhazy";
name = "Paulus Esterhazy";
};
petabyteboy = {
email = "me@pbb.lc";
github = "petabyteboy";
name = "Milan Pässler";
};
peterhoeg = {
email = "peter@hoeg.com";
github = "peterhoeg";
Expand Down
28 changes: 28 additions & 0 deletions pkgs/tools/misc/ifdtool/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
name = "ifdtool-${version}";
version = "4.9";

src = fetchurl {
url = "https://coreboot.org/releases/coreboot-${version}.tar.xz";
sha256 = "0xkai65d3z9fivwscbkm7ndcw2p9g794xz8fwdv979w77n5qsdij";
};

buildPhase = ''
make -C util/ifdtool
'';

installPhase = ''
install -Dm755 util/ifdtool/ifdtool $out/bin/ifdtool
'';

meta = with stdenv.lib; {
description = "Extract and dump Intel Firmware Descriptor information";
homepage = https://www.coreboot.org;
license = licenses.gpl2;
maintainers = [ maintainers.petabyteboy ];
platforms = platforms.linux;
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13855,6 +13855,8 @@ in

cbfstool = callPackage ../applications/virtualization/cbfstool { };

ifdtool = callPackage ../tools/misc/ifdtool { };

nvramtool = callPackage ../tools/misc/nvramtool { };

vmfs-tools = callPackage ../tools/filesystems/vmfs-tools { };
Expand Down

0 comments on commit a9bf045

Please sign in to comment.