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