1 { lib, stdenv, fetchFromGitHub, fetchurl
2 , pkg-config, autoreconfHook, help2man, gettext, libxml2, perl, python3, doxygen
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 sha256 = "0krwwydyvb9224r884y1mlmzyxhlfrcqw73vi1j8787rl0gl5a2i";
19 url = "https://git.alpinelinux.org/aports/plain/community/libsmbios/fixes.patch?id=bdc4f67889c958c1266fa5d0cab71c3cd639122f";
20 sha256 = "aVVc52OovDYvqWRyKcRAi62daa9AalkKvnVOGvrTmRk=";
24 nativeBuildInputs = [ autoreconfHook doxygen gettext libxml2 help2man perl pkg-config ];
26 buildInputs = [ python3 ];
28 configureFlags = [ "--disable-graphviz" ];
30 enableParallelBuilding = true;
34 cp -a src/include/smbios_c $out/include/
35 cp -a out/public-include/smbios_c $out/include/
38 # remove forbidden reference to $TMPDIR
40 patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out/sbin/smbios-sys-info-lite"
44 homepage = "https://github.com/dell/libsmbios";
45 description = "Library to obtain BIOS information";
46 license = with licenses; [ osl21 gpl2Plus ];
48 platforms = [ "i686-linux" "x86_64-linux" ];