1{ lib, stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "dmidecode";
5 version = "3.6";
6
7 src = fetchurl {
8 url = "mirror://savannah/dmidecode/dmidecode-${version}.tar.xz";
9 sha256 = "sha256-5Axl8+w9r+Ma2DSaTvGpcSLTj2UATtZldeGo1XXdi64=";
10 };
11
12 makeFlags = [
13 "prefix=$(out)"
14 "CC=${stdenv.cc.targetPrefix}cc"
15 ];
16
17 meta = with lib; {
18 homepage = "https://www.nongnu.org/dmidecode/";
19 description = "A tool that reads information about your system's hardware from the BIOS according to the SMBIOS/DMI standard";
20 license = licenses.gpl2Plus;
21 platforms = platforms.linux;
22 maintainers = with maintainers; [ ];
23 };
24}