2017-02-27 13:30:46 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxml2, perl, autoreconfHook, doxygen }:
|
2007-06-07 23:02:12 +01:00
|
|
|
|
2011-10-06 11:23:31 +01:00
|
|
|
let
|
2017-02-27 13:30:46 +00:00
|
|
|
version = "2.3.2";
|
2011-10-06 11:23:31 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2017-02-27 13:30:46 +00:00
|
|
|
name = "libsmbios-${version}";
|
2009-09-28 16:33:42 +01:00
|
|
|
|
2007-06-07 23:02:12 +01:00
|
|
|
src = fetchurl {
|
2017-02-27 13:30:46 +00:00
|
|
|
url = "https://github.com/dell/libsmbios/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0kvi36jrvhspyyq0pjfdyvzvimdn27fvbdpf429qm3xdmfi78y2j";
|
2007-06-07 23:02:12 +01:00
|
|
|
};
|
2011-10-06 11:23:31 +01:00
|
|
|
|
2017-02-27 13:30:46 +00:00
|
|
|
buildInputs = [ pkgconfig libxml2 perl autoreconfHook doxygen ];
|
2009-09-28 16:33:42 +01:00
|
|
|
|
|
|
|
# It tries to install some Python stuff even when Python is disabled.
|
|
|
|
installFlags = "pkgpythondir=$(TMPDIR)/python";
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
2017-02-27 13:30:46 +00:00
|
|
|
mkdir -p $out/include
|
2011-10-06 11:23:31 +01:00
|
|
|
cp -va "src/include/"* "$out/include/"
|
|
|
|
cp -va "out/public-include/"* "$out/include/"
|
|
|
|
'';
|
2009-09-28 16:33:42 +01:00
|
|
|
|
2017-05-16 15:35:52 +01:00
|
|
|
# Hack to avoid TMPDIR in RPATHs.
|
|
|
|
preFixup = ''rm -rf "$(pwd)" '';
|
|
|
|
|
2009-02-12 19:18:16 +00:00
|
|
|
meta = {
|
2011-10-06 11:23:31 +01:00
|
|
|
homepage = "http://linux.dell.com/libsmbios/main";
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "A library to obtain BIOS information";
|
2011-10-06 11:23:31 +01: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 23:02:12 +01:00
|
|
|
}
|