nixpkgs/pkgs/os-specific/linux/dmidecode/default.nix
Lluís Batlle i Rossell 6236de3380 Blindly commiting a fix for dmidecode to build with gnumake 3.82
Thank you niksnut.

svn path=/nixpkgs/branches/stdenv-updates/; revision=23777
2010-09-14 08:45:15 +00:00

24 lines
712 B
Nix

{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";
};
}