nixpkgs/pkgs/by-name/li/libsmbios/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
1.5 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitHub,
fetchurl,
pkg-config,
autoreconfHook,
help2man,
gettext,
libxml2,
perl,
python3,
doxygen,
}:
2017-11-11 20:42:33 +00:00
stdenv.mkDerivation rec {
pname = "libsmbios";
2020-02-06 09:55:12 +00:00
version = "2.4.3";
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";
};
patches = [
(fetchurl {
name = "musl.patch";
url = "https://git.alpinelinux.org/aports/plain/community/libsmbios/fixes.patch?id=bdc4f67889c958c1266fa5d0cab71c3cd639122f";
sha256 = "aVVc52OovDYvqWRyKcRAi62daa9AalkKvnVOGvrTmRk=";
})
];
nativeBuildInputs = [
autoreconfHook
doxygen
gettext
libxml2
help2man
perl
pkg-config
];
2017-11-11 20:42:33 +00:00
buildInputs = [ python3 ];
configureFlags = [ "--disable-graphviz" ];
2017-11-11 20:42:33 +00:00
enableParallelBuilding = true;
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/
'';
2023-07-31 04:31:02 +00:00
# remove forbidden reference to $TMPDIR
preFixup = ''
patchelf --shrink-rpath --allowed-rpath-prefixes "$NIX_STORE" "$out/sbin/smbios-sys-info-lite"
'';
meta = with lib; {
homepage = "https://github.com/dell/libsmbios";
description = "Library to obtain BIOS information";
2018-02-17 00:51:47 +00:00
license = with licenses; [
osl21
gpl2Plus
];
maintainers = [ ];
platforms = [
"i686-linux"
"x86_64-linux"
];
};
}