summary refs log tree commit diff
path: root/pkgs/tools/misc/intelmetool/default.nix
blob: 87aa7df8d6d71998683c829345fe570d10e01cd8 (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
29
30
31
32
{ stdenv, fetchgit, zlib, pciutils }:

stdenv.mkDerivation rec {
  pname = "intelmetool";
  version = "4.8.1";

  src = fetchgit {
    url = "https://review.coreboot.org/coreboot.git";
    rev = version;
    sha256 = "1gjisy9b7vgzjvy1fwaqhq3589yd59kkylv7apjmg5r2b3dv4zvr";
    fetchSubmodules = false;
  };

  buildInputs = [ zlib pciutils ];

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

  installPhase = ''
    mkdir -p $out/bin
    cp util/intelmetool/intelmetool $out/bin
    '';

  meta = with stdenv.lib; {
    description = "Dump interesting things about Management Engine";
    homepage = https://www.coreboot.org/Nvramtool;
    license = licenses.gpl2;
    maintainers = [ maintainers.gnidorah ];
    platforms = platforms.linux;
  };
}