2009-09-28 15:33:42 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxml2, perl }:
|
2007-06-07 22:02:12 +00:00
|
|
|
|
2011-10-06 10:23:31 +00:00
|
|
|
let
|
|
|
|
name = "libsmbios-2.2.28";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2009-09-28 15:33:42 +00:00
|
|
|
|
2007-06-07 22:02:12 +00:00
|
|
|
src = fetchurl {
|
2009-02-12 19:18:16 +00:00
|
|
|
url = "http://linux.dell.com/libsmbios/download/libsmbios/${name}/${name}.tar.gz";
|
2011-10-06 10:23:31 +00:00
|
|
|
sha256 = "03m0n834w49acwbf5cf9ync1ksnn2jkwaysvy7584y60qpmngb91";
|
2007-06-07 22:02:12 +00:00
|
|
|
};
|
2011-10-06 10:23:31 +00:00
|
|
|
|
2009-09-28 15:33:42 +00:00
|
|
|
buildInputs = [ pkgconfig libxml2 perl ];
|
|
|
|
|
|
|
|
# It tries to install some Python stuff even when Python is disabled.
|
|
|
|
installFlags = "pkgpythondir=$(TMPDIR)/python";
|
|
|
|
|
|
|
|
# It forgets to install headers.
|
|
|
|
postInstall =
|
|
|
|
''
|
2011-10-06 10:23:31 +00:00
|
|
|
cp -va "src/include/"* "$out/include/"
|
|
|
|
cp -va "out/public-include/"* "$out/include/"
|
|
|
|
'';
|
2009-09-28 15:33:42 +00:00
|
|
|
|
2009-02-12 19:18:16 +00:00
|
|
|
meta = {
|
2011-10-06 10:23:31 +00:00
|
|
|
homepage = "http://linux.dell.com/libsmbios/main";
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "A library to obtain BIOS information";
|
2011-10-06 10:23:31 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus; # alternatively, under the Open Software License version 2.1
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-02-12 19:18:16 +00:00
|
|
|
};
|
2007-06-07 22:02:12 +00:00
|
|
|
}
|