nixpkgs/pkgs/os-specific/linux/libsmbios/default.nix

40 lines
1.0 KiB
Nix
Raw Normal View History

2018-02-17 00:51:47 +00:00
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, help2man, gettext
, libxml2, perl, python3, doxygen }:
2017-11-11 20:42:33 +00:00
stdenv.mkDerivation rec {
2017-02-27 13:30:46 +00:00
name = "libsmbios-${version}";
libsmbios: 2.4.1 -> 2.4.2 (#42983) Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/libsmbios/versions. Version release notes (from GitHub): Compatibility changes to fix man page and includes in some installations These checks were done: - built on NixOS - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-battery-ctl had a zero exit code or showed the expected version - /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-get-ut-data passed the binary check. - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-keyboard-ctl had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-lcd-brightness had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-passwd had a zero exit code or showed the expected version - /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-state-byte-ctl passed the binary check. - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-sys-info had a zero exit code or showed the expected version - /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-sys-info-lite passed the binary check. - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-thermal-ctl had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-token-ctl had a zero exit code or showed the expected version - /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-upflag-ctl passed the binary check. - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-wakeup-ctl had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-wireless-ctl had a zero exit code or showed the expected version - 4 of 13 passed binary check by having a zero exit code. - 4 of 13 passed binary check by having the new version present in output. - found 2.4.2 with grep in /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2 - directory tree listing: https://gist.github.com/117a562c97fde114f3fc3c00cd8747c4 - du listing: https://gist.github.com/1b95e63032cd1ceb958e443695bd5cd8
2018-07-08 23:19:32 +01:00
version = "2.4.2";
2017-11-11 20:42:33 +00:00
src = fetchFromGitHub {
owner = "dell";
repo = "libsmbios";
rev = "v${version}";
libsmbios: 2.4.1 -> 2.4.2 (#42983) Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/libsmbios/versions. Version release notes (from GitHub): Compatibility changes to fix man page and includes in some installations These checks were done: - built on NixOS - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-battery-ctl had a zero exit code or showed the expected version - /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-get-ut-data passed the binary check. - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-keyboard-ctl had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-lcd-brightness had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-passwd had a zero exit code or showed the expected version - /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-state-byte-ctl passed the binary check. - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-sys-info had a zero exit code or showed the expected version - /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-sys-info-lite passed the binary check. - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-thermal-ctl had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-token-ctl had a zero exit code or showed the expected version - /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-upflag-ctl passed the binary check. - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-wakeup-ctl had a zero exit code or showed the expected version - Warning: no invocation of /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2/bin/smbios-wireless-ctl had a zero exit code or showed the expected version - 4 of 13 passed binary check by having a zero exit code. - 4 of 13 passed binary check by having the new version present in output. - found 2.4.2 with grep in /nix/store/38kz148d7anxsqcchlqmqjcb4mi34158-libsmbios-2.4.2 - directory tree listing: https://gist.github.com/117a562c97fde114f3fc3c00cd8747c4 - du listing: https://gist.github.com/1b95e63032cd1ceb958e443695bd5cd8
2018-07-08 23:19:32 +01:00
sha256 = "0bck3byk62a69ngyj0zjpzf4wxwjmkhwhvsqb8z24dww9wz41l9k";
};
2018-02-17 00:51:47 +00:00
nativeBuildInputs = [ autoreconfHook doxygen gettext libxml2 help2man perl pkgconfig ];
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/
'';
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" ];
};
}