|
1 |
| -{ lib, stdenv, fetchzip, autoreconfHook, pkg-config, gnumake42, glib, pcre |
2 |
| -, json_c, flex, bison, dtc, pciutils, dmidecode, acpica-tools, libbsd }: |
| 1 | +{ |
| 2 | + lib, |
| 3 | + stdenv, |
| 4 | + fetchzip, |
| 5 | + autoreconfHook, |
| 6 | + pkg-config, |
| 7 | + glib, |
| 8 | + pcre, |
| 9 | + json_c, |
| 10 | + flex, |
| 11 | + bison, |
| 12 | + dtc, |
| 13 | + pciutils, |
| 14 | + dmidecode, |
| 15 | + acpica-tools, |
| 16 | + libbsd, |
| 17 | +}: |
3 | 18 |
|
4 | 19 | stdenv.mkDerivation rec {
|
5 | 20 | pname = "fwts";
|
6 | 21 | version = "24.09.00";
|
7 | 22 |
|
8 | 23 | src = fetchzip {
|
9 |
| - url = "https://fwts.ubuntu.com/release/${pname}-V${version}.tar.gz"; |
10 |
| - sha256 = "sha256-ZJSlx8O38e7bJYTgZacayslr28TLHHJsISXq9Uzsnyc="; |
| 24 | + url = "https://fwts.ubuntu.com/release/fwts-V${version}.tar.gz"; |
| 25 | + hash = "sha256-ZJSlx8O38e7bJYTgZacayslr28TLHHJsISXq9Uzsnyc="; |
11 | 26 | stripRoot = false;
|
12 | 27 | };
|
13 | 28 |
|
14 |
| - # fails with make 4.4 |
15 |
| - nativeBuildInputs = [ autoreconfHook pkg-config gnumake42 ]; |
16 |
| - buildInputs = [ glib pcre json_c flex bison dtc pciutils dmidecode acpica-tools libbsd ]; |
| 29 | + nativeBuildInputs = [ |
| 30 | + autoreconfHook |
| 31 | + pkg-config |
| 32 | + ]; |
| 33 | + |
| 34 | + buildInputs = [ |
| 35 | + glib |
| 36 | + pcre |
| 37 | + json_c |
| 38 | + flex |
| 39 | + bison |
| 40 | + dtc |
| 41 | + pciutils |
| 42 | + dmidecode |
| 43 | + acpica-tools |
| 44 | + libbsd |
| 45 | + ]; |
17 | 46 |
|
18 | 47 | postPatch = ''
|
19 | 48 | substituteInPlace src/lib/include/fwts_binpaths.h \
|
20 |
| - --replace "/usr/bin/lspci" "${pciutils}/bin/lspci" \ |
21 |
| - --replace "/usr/sbin/dmidecode" "${dmidecode}/bin/dmidecode" \ |
22 |
| - --replace "/usr/bin/iasl" "${acpica-tools}/bin/iasl" |
| 49 | + --replace-fail "/usr/bin/lspci" "${pciutils}/bin/lspci" \ |
| 50 | + --replace-fail "/usr/sbin/dmidecode" "${dmidecode}/bin/dmidecode" \ |
| 51 | + --replace-fail "/usr/bin/iasl" "${acpica-tools}/bin/iasl" |
23 | 52 |
|
24 | 53 | substituteInPlace src/lib/src/fwts_devicetree.c \
|
25 | 54 | src/devicetree/dt_base/dt_base.c \
|
26 |
| - --replace "dtc -I" "${dtc}/bin/dtc -I" |
| 55 | + --replace-fail "dtc -I" "${dtc}/bin/dtc -I" |
27 | 56 | '';
|
28 | 57 |
|
29 | 58 | enableParallelBuilding = true;
|
30 | 59 |
|
31 |
| - meta = with lib; { |
| 60 | + meta = { |
32 | 61 | homepage = "https://wiki.ubuntu.com/FirmwareTestSuite";
|
33 | 62 | description = "Firmware Test Suite";
|
34 |
| - platforms = platforms.linux; |
35 |
| - license = licenses.gpl2Plus; |
36 |
| - maintainers = with maintainers; [ tadfisher ]; |
| 63 | + platforms = lib.platforms.linux; |
| 64 | + license = lib.licenses.gpl2Plus; |
| 65 | + maintainers = with lib.maintainers; [ tadfisher ]; |
37 | 66 | };
|
38 | 67 | }
|
0 commit comments