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