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-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ libxml2 perl 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 = {
|
2017-08-01 22:03:30 +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
|
2017-09-13 14:29:58 +02:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2009-02-12 20:18:16 +01:00
|
|
|
};
|
2007-06-08 00:02:12 +02:00
|
|
|
}
|