3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/fwts/default.nix
R. RyanTM e395ba0777 fwts: 18.05.00 -> 18.06.02
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/bs0xv1vsc6zf0cylv6j8iidiwcg9zqx9-fwts-18.06.02/bin/fwts passed the binary check.
- Warning: no invocation of /nix/store/bs0xv1vsc6zf0cylv6j8iidiwcg9zqx9-fwts-18.06.02/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.06.02 with grep in /nix/store/bs0xv1vsc6zf0cylv6j8iidiwcg9zqx9-fwts-18.06.02
- directory tree listing: https://gist.github.com/c871651eb151d0cf25aa751e4e925e27
- du listing: https://gist.github.com/a7b8160c0b4fbc5ed2fa237004865949
2018-06-24 00:04:14 -07:00

31 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.06.02";
src = fetchzip {
url = "http://fwts.ubuntu.com/release/fwts-V${version}.tar.gz";
sha256 = "1j7yn3qyy9baylhjvr9j8hiyl1nc7la1j4fffvxk8qvxakwxbyl2";
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 ];
};
}