1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/os-specific/linux/libsmbios/default.nix

38 lines
1 KiB
Nix
Raw Normal View History

2018-02-17 00:51:47 +00:00
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, help2man, gettext
2017-11-11 20:42:33 +00:00
, 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}";
2018-02-17 00:51:47 +00:00
version = "2.4.1";
2017-11-11 20:42:33 +00:00
src = fetchFromGitHub {
owner = "dell";
repo = "libsmbios";
rev = "v${version}";
2018-02-17 00:51:47 +00:00
sha256 = "158w5fz777is7nr5yhpr69b17nn6i1pavycxq1q9899frrpkzbsc";
};
2018-02-17 00:51:47 +00:00
nativeBuildInputs = [ autoreconfHook doxygen gettext libxml2 help2man perl pkgconfig ];
2017-11-11 20:42:33 +00:00
configureFlags = [ "--disable-python" "--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/
'';
2017-11-11 20:42:33 +00:00
preFixup = ''rm -rf "$(pwd)" ''; # Hack to avoid TMPDIR in RPATHs
2018-02-17 00:51:47 +00:00
meta = with stdenv.lib; {
2017-11-11 20:42:33 +00:00
homepage = https://github.com/dell/libsmbios;
description = "A library to obtain BIOS information";
2018-02-17 00:51:47 +00:00
license = with licenses; [ osl21 gpl2Plus ];
maintainers = with maintainers; [ ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
}