1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/os-specific/linux/libsmbios/default.nix

39 lines
1 KiB
Nix
Raw Normal View History

2017-11-11 20:42:33 +00:00
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, libtool, gettext
, libxml2, perl, doxygen }:
2017-11-11 20:42:33 +00:00
stdenv.mkDerivation rec {
2017-02-27 13:30:46 +00:00
name = "libsmbios-${version}";
2017-11-11 20:42:33 +00:00
version = "2.3.3";
2017-11-11 20:42:33 +00:00
src = fetchFromGitHub {
owner = "dell";
repo = "libsmbios";
rev = "v${version}";
sha256 = "1cl5nb6qk8ki87hwqf9n1dd9nlhkjnlpdxlhzvm82za16gs7apkl";
};
2017-11-11 20:42:33 +00:00
nativeBuildInputs = [ autoreconfHook doxygen gettext libtool perl pkgconfig ];
buildInputs = [ libxml2 ];
configureFlags = [ "--disable-python" "--disable-graphviz" ];
2017-11-11 20:42:33 +00:00
enableParallelBuilding = true;
postInstall =
''
2017-02-27 13:30:46 +00:00
mkdir -p $out/include
2017-11-11 20:42:33 +00:00
cp -a src/include/smbios_c $out/include/
cp -a out/public-include/smbios_c $out/include/
'';
2017-11-11 20:42:33 +00:00
preFixup = ''rm -rf "$(pwd)" ''; # Hack to avoid TMPDIR in RPATHs
meta = {
2017-11-11 20:42:33 +00:00
homepage = https://github.com/dell/libsmbios;
description = "A library to obtain BIOS information";
2017-11-11 20:42:33 +00:00
license = with stdenv.lib.licenses; [ osl21 gpl2Plus ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}