2018-02-17 00:51:47 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, help2man, gettext
|
2018-05-12 23:55:05 +01:00
|
|
|
, libxml2, perl, python3, doxygen }:
|
2007-06-07 23:02:12 +01:00
|
|
|
|
2017-11-11 20:42:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-27 13:30:46 +00:00
|
|
|
name = "libsmbios-${version}";
|
2018-07-08 23:19:32 +01:00
|
|
|
version = "2.4.2";
|
2009-09-28 16:33:42 +01:00
|
|
|
|
2017-11-11 20:42:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dell";
|
|
|
|
repo = "libsmbios";
|
|
|
|
rev = "v${version}";
|
2018-07-08 23:19:32 +01:00
|
|
|
sha256 = "0bck3byk62a69ngyj0zjpzf4wxwjmkhwhvsqb8z24dww9wz41l9k";
|
2007-06-07 23:02:12 +01:00
|
|
|
};
|
2011-10-06 11:23:31 +01:00
|
|
|
|
2018-02-17 00:51:47 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook doxygen gettext libxml2 help2man perl pkgconfig ];
|
2017-11-11 20:42:33 +00:00
|
|
|
|
2018-05-12 23:55:05 +01:00
|
|
|
buildInputs = [ python3 ];
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-graphviz" ];
|
2009-09-28 16:33:42 +01:00
|
|
|
|
2017-11-11 20:42:33 +00:00
|
|
|
enableParallelBuilding = true;
|
2009-09-28 16:33:42 +01:00
|
|
|
|
2018-02-17 00:51:47 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/include
|
|
|
|
cp -a src/include/smbios_c $out/include/
|
|
|
|
cp -a out/public-include/smbios_c $out/include/
|
|
|
|
'';
|
2009-09-28 16:33:42 +01:00
|
|
|
|
2017-11-11 20:42:33 +00:00
|
|
|
preFixup = ''rm -rf "$(pwd)" ''; # Hack to avoid TMPDIR in RPATHs
|
2017-05-16 15:35:52 +01:00
|
|
|
|
2018-02-17 00:51:47 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-11-11 20:42:33 +00:00
|
|
|
homepage = https://github.com/dell/libsmbios;
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "A library to obtain BIOS information";
|
2018-02-17 00:51:47 +00:00
|
|
|
license = with licenses; [ osl21 gpl2Plus ];
|
|
|
|
maintainers = with maintainers; [ ];
|
2017-09-13 13:29:58 +01:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2009-02-12 19:18:16 +00:00
|
|
|
};
|
2007-06-07 23:02:12 +01:00
|
|
|
}
|