2023-01-25 00:58:53 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fetchurl,
|
|
|
|
pkg-config,
|
|
|
|
autoreconfHook,
|
|
|
|
help2man,
|
|
|
|
gettext,
|
|
|
|
libxml2,
|
|
|
|
perl,
|
|
|
|
python3,
|
|
|
|
doxygen,
|
|
|
|
}:
|
2017-11-11 20:42:33 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libsmbios";
|
2020-02-06 09:55:12 +00:00
|
|
|
version = "2.4.3";
|
2009-09-28 15:33:42 +00:00
|
|
|
|
2017-11-11 20:42:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dell";
|
|
|
|
repo = "libsmbios";
|
|
|
|
rev = "v${version}";
|
2020-02-06 09:55:12 +00:00
|
|
|
sha256 = "0krwwydyvb9224r884y1mlmzyxhlfrcqw73vi1j8787rl0gl5a2i";
|
2007-06-07 22:02:12 +00:00
|
|
|
};
|
2011-10-06 10:23:31 +00:00
|
|
|
|
2023-01-25 00:58:53 +00:00
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
|
|
|
name = "musl.patch";
|
|
|
|
url = "https://git.alpinelinux.org/aports/plain/community/libsmbios/fixes.patch?id=bdc4f67889c958c1266fa5d0cab71c3cd639122f";
|
|
|
|
sha256 = "aVVc52OovDYvqWRyKcRAi62daa9AalkKvnVOGvrTmRk=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
doxygen
|
|
|
|
gettext
|
|
|
|
libxml2
|
|
|
|
help2man
|
|
|
|
perl
|
|
|
|
pkg-config
|
|
|
|
];
|
2017-11-11 20:42:33 +00:00
|
|
|
|
2018-05-12 22:55:05 +00:00
|
|
|
buildInputs = [ python3 ];
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-graphviz" ];
|
2009-09-28 15:33:42 +00:00
|
|
|
|
2017-11-11 20:42:33 +00:00
|
|
|
enableParallelBuilding = true;
|
2009-09-28 15:33:42 +00: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 15:33:42 +00:00
|
|
|
|
2023-07-31 04:31:02 +00:00
|
|
|
# remove forbidden reference to $TMPDIR
|
2023-07-31 04:14:30 +00:00
|
|
|
preFixup = ''
|
2023-08-13 02:44:01 +00:00
|
|
|
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out/sbin/smbios-sys-info-lite"
|
2023-07-31 04:14:30 +00:00
|
|
|
'';
|
2017-05-16 14:35:52 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/dell/libsmbios";
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Library to obtain BIOS information";
|
2018-02-17 00:51:47 +00:00
|
|
|
license = with licenses; [
|
|
|
|
osl21
|
|
|
|
gpl2Plus
|
|
|
|
];
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2017-09-13 12:29:58 +00:00
|
|
|
platforms = [
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
];
|
2009-02-12 19:18:16 +00:00
|
|
|
};
|
2007-06-07 22:02:12 +00:00
|
|
|
}
|