f550fa4a72
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/fwts/versions. These checks were done: - built on NixOS - /nix/store/v5wy7231jv43gnni4s3jcq0lz1qx21bs-fwts-18.05.00/bin/fwts passed the binary check. - Warning: no invocation of /nix/store/v5wy7231jv43gnni4s3jcq0lz1qx21bs-fwts-18.05.00/bin/kernelscan had a zero exit code or showed the expected version - 1 of 2 passed binary check by having a zero exit code. - 0 of 2 passed binary check by having the new version present in output. - found 18.05.00 with grep in /nix/store/v5wy7231jv43gnni4s3jcq0lz1qx21bs-fwts-18.05.00 - directory tree listing: https://gist.github.com/8fb4995cd885cdeea7a35d51b7edca3b - du listing: https://gist.github.com/8cc61b948b8e0aa4a1a8088464c5536d
30 lines
1.1 KiB
Nix
30 lines
1.1 KiB
Nix
{ stdenv, fetchzip, autoreconfHook, pkgconfig, glib, libtool, pcre
|
|
, json_c, flex, bison, dtc, pciutils, dmidecode, iasl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "fwts-${version}";
|
|
version = "18.05.00";
|
|
|
|
src = fetchzip {
|
|
url = "http://fwts.ubuntu.com/release/fwts-V${version}.tar.gz";
|
|
sha256 = "0ixc82zdv4cfj8g2mwd851fc47cpjj81mwjhn00n5wddb9cxmgkj";
|
|
stripRoot = false;
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig libtool ];
|
|
buildInputs = [ glib pcre json_c flex bison dtc pciutils dmidecode iasl ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/lib/include/fwts_binpaths.h --replace "/usr/bin/lspci" "${pciutils}/bin/lspci"
|
|
substituteInPlace src/lib/include/fwts_binpaths.h --replace "/usr/sbin/dmidecode" "${dmidecode}/bin/dmidecode"
|
|
substituteInPlace src/lib/include/fwts_binpaths.h --replace "/usr/bin/iasl" "${iasl}/bin/iasl"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://wiki.ubuntu.com/FirmwareTestSuite";
|
|
description = "Firmware Test Suite";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ tadfisher ];
|
|
};
|
|
}
|