2017-11-11 21:42:33 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, libtool, gettext
|
|
|
|
, libxml2, perl, doxygen }:
|
2007-06-08 00:02:12 +02:00
|
|
|
|
2017-11-11 21:42:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-27 14:30:46 +01:00
|
|
|
name = "libsmbios-${version}";
|
2017-11-11 21:42:33 +01:00
|
|
|
version = "2.3.3";
|
2009-09-28 17:33:42 +02:00
|
|
|
|
2017-11-11 21:42:33 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dell";
|
|
|
|
repo = "libsmbios";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1cl5nb6qk8ki87hwqf9n1dd9nlhkjnlpdxlhzvm82za16gs7apkl";
|
2007-06-08 00:02:12 +02:00
|
|
|
};
|
2011-10-06 12:23:31 +02:00
|
|
|
|
2017-11-11 21:42:33 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook doxygen gettext libtool perl pkgconfig ];
|
|
|
|
buildInputs = [ libxml2 ];
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-python" "--disable-graphviz" ];
|
2009-09-28 17:33:42 +02:00
|
|
|
|
2017-11-11 21:42:33 +01:00
|
|
|
enableParallelBuilding = true;
|
2009-09-28 17:33:42 +02:00
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
2017-02-27 14:30:46 +01:00
|
|
|
mkdir -p $out/include
|
2017-11-11 21:42:33 +01:00
|
|
|
cp -a src/include/smbios_c $out/include/
|
|
|
|
cp -a out/public-include/smbios_c $out/include/
|
2011-10-06 12:23:31 +02:00
|
|
|
'';
|
2009-09-28 17:33:42 +02:00
|
|
|
|
2017-11-11 21:42:33 +01:00
|
|
|
preFixup = ''rm -rf "$(pwd)" ''; # Hack to avoid TMPDIR in RPATHs
|
2017-05-16 16:35:52 +02:00
|
|
|
|
2009-02-12 20:18:16 +01:00
|
|
|
meta = {
|
2017-11-11 21:42:33 +01:00
|
|
|
homepage = https://github.com/dell/libsmbios;
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "A library to obtain BIOS information";
|
2017-11-11 21:42:33 +01:00
|
|
|
license = with stdenv.lib.licenses; [ osl21 gpl2Plus ];
|
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
|
|
|
}
|