tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
fwts: init at 18.01.00
Tad Fisher
8 years ago
f4bea835
73774ef8
+32
2 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
fwts
default.nix
top-level
all-packages.nix
+30
pkgs/os-specific/linux/fwts/default.nix
···
1
1
+
{ stdenv, fetchzip, autoreconfHook, pkgconfig, glib, libtool, pcre
2
2
+
, json_c, flex, bison, dtc, pciutils, dmidecode, iasl }:
3
3
+
4
4
+
stdenv.mkDerivation rec {
5
5
+
name = "fwts-${version}";
6
6
+
version = "18.01.00";
7
7
+
8
8
+
src = fetchzip {
9
9
+
url = "http://fwts.ubuntu.com/release/fwts-V${version}.tar.gz";
10
10
+
sha256 = "043wkq4hz5pz79masppya67b8i5jw61p1j8dw17jwc8w6gp8csfb";
11
11
+
stripRoot = false;
12
12
+
};
13
13
+
14
14
+
nativeBuildInputs = [ autoreconfHook pkgconfig libtool ];
15
15
+
buildInputs = [ glib pcre json_c flex bison dtc pciutils dmidecode iasl ];
16
16
+
17
17
+
postPatch = ''
18
18
+
substituteInPlace src/lib/include/fwts_binpaths.h --replace "/usr/bin/lspci" "${pciutils}/bin/lspci"
19
19
+
substituteInPlace src/lib/include/fwts_binpaths.h --replace "/usr/sbin/dmidecode" "${dmidecode}/bin/dmidecode"
20
20
+
substituteInPlace src/lib/include/fwts_binpaths.h --replace "/usr/bin/iasl" "${iasl}/bin/iasl"
21
21
+
'';
22
22
+
23
23
+
meta = with stdenv.lib; {
24
24
+
homepage = "https://wiki.ubuntu.com/FirmwareTestSuite";
25
25
+
description = "Firmware Test Suite";
26
26
+
platforms = platforms.linux;
27
27
+
license = licenses.gpl2;
28
28
+
maintainers = with maintainers; [ tadfisher ];
29
29
+
};
30
30
+
}
+2
pkgs/top-level/all-packages.nix
···
12905
12905
12906
12906
fwupdate = callPackage ../os-specific/linux/firmware/fwupdate { };
12907
12907
12908
12908
+
fwts = callPackage ../os-specific/linux/fwts { };
12909
12909
+
12908
12910
libossp_uuid = callPackage ../development/libraries/libossp-uuid { };
12909
12911
12910
12912
libuuid =