summary refs log blame commit diff
path: root/pkgs/os-specific/linux/dmidecode/default.nix
blob: 7a291cba26cab3c2d950f7a3951ec6e39d9d8a76 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                 





                                                                                                                  






                                                                                                                                  
{stdenv, fetchurl}:

stdenv.mkDerivation rec {
  name = "dmidecode-2.10";

  src = fetchurl {
    url = "http://www.very-clever.com/download/nongnu/dmidecode/${name}.tar.bz2";
    sha256 = "1h72r5scrpvgw60hif5msjg6vw2x0jd6z094lhbh6cjk6gls6x2d";
  };

  # Taken from gentoo, to build with gnumake 3.82
  # http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/dmidecode/dmidecode-2.10.ebuild?r1=1.5&r2=1.6
  patchPhase = ''
    sed -i -e '/^PROGRAMS !=/d' Makefile
  '';

  makeFlags = "prefix=$(out)";

  meta = {
    homepage = http://www.nongnu.org/dmidecode/;
    description = "A tool that reads information about your system's hardware from the BIOS according to the SMBIOS/DMI standard";
  };
}