2017-02-27 13:30:46 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxml2, perl, autoreconfHook, doxygen }:
|
2007-06-07 22:02:12 +00:00
|
|
|
|
2011-10-06 10:23:31 +00:00
|
|
|
let
|
2017-02-27 13:30:46 +00:00
|
|
|
version = "2.3.2";
|
2011-10-06 10:23:31 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2017-02-27 13:30:46 +00:00
|
|
|
name = "libsmbios-${version}";
|
2009-09-28 15:33:42 +00:00
|
|
|
|
2007-06-07 22:02:12 +00: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 22:02:12 +00:00
|
|
|
};
|
2011-10-06 10:23:31 +00:00
|
|
|
|
2017-02-27 13:30:46 +00:00
|
|
|
buildInputs = [ pkgconfig libxml2 perl autoreconfHook doxygen ];
|
2009-09-28 15:33:42 +00: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 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
|
|
|
|
2017-05-16 14:35:52 +00:00
|
|
|
# Hack to avoid TMPDIR in RPATHs.
|
|
|
|
preFixup = ''rm -rf "$(pwd)" '';
|
|
|
|
|
2009-02-12 19:18:16 +00:00
|
|
|
meta = {
|
2017-08-01 20:03:30 +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
|
|
|
}
|