about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/ifdtool/default.nix
blob: 7d15825c27e8f44046536650e7ad9284a48021f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
  };
}