1{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, help2man, gettext
2, libxml2, perl, doxygen }:
3
4
5stdenv.mkDerivation rec {
6 name = "libsmbios-${version}";
7 version = "2.4.1";
8
9 src = fetchFromGitHub {
10 owner = "dell";
11 repo = "libsmbios";
12 rev = "v${version}";
13 sha256 = "158w5fz777is7nr5yhpr69b17nn6i1pavycxq1q9899frrpkzbsc";
14 };
15
16 nativeBuildInputs = [ autoreconfHook doxygen gettext libxml2 help2man perl pkgconfig ];
17
18 configureFlags = [ "--disable-python" "--disable-graphviz" ];
19
20 enableParallelBuilding = true;
21
22 postInstall = ''
23 mkdir -p $out/include
24 cp -a src/include/smbios_c $out/include/
25 cp -a out/public-include/smbios_c $out/include/
26 '';
27
28 preFixup = ''rm -rf "$(pwd)" ''; # Hack to avoid TMPDIR in RPATHs
29
30 meta = with stdenv.lib; {
31 homepage = https://github.com/dell/libsmbios;
32 description = "A library to obtain BIOS information";
33 license = with licenses; [ osl21 gpl2Plus ];
34 maintainers = with maintainers; [ ];
35 platforms = [ "i686-linux" "x86_64-linux" ];
36 };
37}