summary refs log blame commit diff
path: root/pkgs/os-specific/linux/libsmbios/default.nix
blob: 62898675f2be1ee86a615c180e6d3d80db7c18d3 (plain) (tree)
1
2
3
4
5
6
7
8
                                                                       
                           
 

                         
                                
                    
 



                         
                                                                    
    
 
                                                                                         

                                                               
 
                                
 




                                                   
 
                                                                   
 
                           
                                                 
                                                         

                                                
                                                
    
 
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, help2man, gettext
, libxml2, perl, doxygen }:


stdenv.mkDerivation rec {
  name = "libsmbios-${version}";
  version = "2.4.1";

  src = fetchFromGitHub {
    owner = "dell";
    repo = "libsmbios";
    rev = "v${version}";
    sha256 = "158w5fz777is7nr5yhpr69b17nn6i1pavycxq1q9899frrpkzbsc";
  };

  nativeBuildInputs = [ autoreconfHook doxygen gettext libxml2 help2man perl pkgconfig ];

  configureFlags = [ "--disable-python" "--disable-graphviz" ];

  enableParallelBuilding = true;

  postInstall = ''
    mkdir -p $out/include
    cp -a src/include/smbios_c $out/include/
    cp -a out/public-include/smbios_c $out/include/
  '';

  preFixup = ''rm -rf "$(pwd)" ''; # Hack to avoid TMPDIR in RPATHs

  meta = with stdenv.lib; {
    homepage = https://github.com/dell/libsmbios;
    description = "A library to obtain BIOS information";
    license = with licenses; [ osl21 gpl2Plus ];
    maintainers = with maintainers; [ ];
    platforms = [ "i686-linux" "x86_64-linux" ];
  };
}