2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, help2man, gettext
|
2018-05-13 00:55:05 +02:00
|
|
|
, libxml2, perl, python3, doxygen }:
|
2007-06-08 00:02:12 +02:00
|
|
|
|
2017-11-11 21:42:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libsmbios";
|
2020-02-06 10:55:12 +01:00
|
|
|
version = "2.4.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}";
|
2020-02-06 10:55:12 +01:00
|
|
|
sha256 = "0krwwydyvb9224r884y1mlmzyxhlfrcqw73vi1j8787rl0gl5a2i";
|
2007-06-08 00:02:12 +02:00
|
|
|
};
|
2011-10-06 12:23:31 +02:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook doxygen gettext libxml2 help2man perl pkg-config ];
|
2017-11-11 21:42:33 +01:00
|
|
|
|
2018-05-13 00:55:05 +02:00
|
|
|
buildInputs = [ python3 ];
|
|
|
|
|
|
|
|
configureFlags = [ "--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
|
|
|
|
2018-02-17 01:51:47 +01: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 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
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/dell/libsmbios";
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "A library to obtain BIOS information";
|
2018-02-17 01:51:47 +01:00
|
|
|
license = with licenses; [ osl21 gpl2Plus ];
|
|
|
|
maintainers = with maintainers; [ ];
|
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
|
|
|
}
|