From 8ad32a7e9883b32dd34476abf9685afe6a214db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Sat, 2 Feb 2019 02:42:36 +0100 Subject: [PATCH] ifdtool: init at 4.9 --- maintainers/maintainer-list.nix | 5 +++++ pkgs/tools/misc/ifdtool/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 35 insertions(+) create mode 100644 pkgs/tools/misc/ifdtool/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 669baf681f77..44f94b0e0791 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/tools/misc/ifdtool/default.nix b/pkgs/tools/misc/ifdtool/default.nix new file mode 100644 index 000000000000..7d15825c27e8 --- /dev/null +++ b/pkgs/tools/misc/ifdtool/default.nix @@ -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; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac3f6b64712e..baca1a918a6c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };