summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorgnidorah <gnidorah@users.noreply.github.com>2018-12-13 09:41:11 +0300
committergnidorah <gnidorah@users.noreply.github.com>2018-12-13 09:41:11 +0300
commitbc4c3e5cb91597f41db8155c0fc549aefcb98e6b (patch)
treec28c51aa9e426e0e75970bda3eddd11c32871ab7 /pkgs/tools
parent716a38d015a85f5b79d7358ef4bbfe429d5014b5 (diff)
downloadnixpkgs-bc4c3e5cb91597f41db8155c0fc549aefcb98e6b.tar
nixpkgs-bc4c3e5cb91597f41db8155c0fc549aefcb98e6b.tar.gz
nixpkgs-bc4c3e5cb91597f41db8155c0fc549aefcb98e6b.tar.bz2
nixpkgs-bc4c3e5cb91597f41db8155c0fc549aefcb98e6b.tar.lz
nixpkgs-bc4c3e5cb91597f41db8155c0fc549aefcb98e6b.tar.xz
nixpkgs-bc4c3e5cb91597f41db8155c0fc549aefcb98e6b.tar.zst
nixpkgs-bc4c3e5cb91597f41db8155c0fc549aefcb98e6b.zip
intelmetool: init at 4.8.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/misc/intelmetool/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/misc/intelmetool/default.nix b/pkgs/tools/misc/intelmetool/default.nix
new file mode 100644
index 00000000000..66378e457a2
--- /dev/null
+++ b/pkgs/tools/misc/intelmetool/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchgit, zlib, pciutils }:
+
+stdenv.mkDerivation rec {
+  name = "intelmetool-${version}";
+  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;
+  };
+}