1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
libsForQt5,
wrapGAppsHook4,
gtk3,
json-glib,
lerc,
libdatrie,
libepoxy,
libnghttp2,
libpsl,
libselinux,
libsepol,
libsoup_3,
libsysprof-capture,
libthai,
libxkbcommon,
pcre2,
sqlite,
util-linux,
libXdmcp,
libXtst,
}:
stdenv.mkDerivation (finalAtrs: {
pname = "hardinfo2";
version = "2.2.7";
src = fetchFromGitHub {
owner = "hardinfo2";
repo = "hardinfo2";
tag = "release-${finalAtrs.version}";
hash = "sha256-IIH2SH4Ph25VFx652RQFZX8rL0ZlwjjfVrb+txLF3Ks=";
};
nativeBuildInputs = [
cmake
pkg-config
wrapGAppsHook4
libsForQt5.wrapQtAppsHook
];
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
dontWrapQtApps = true;
buildInputs = [
gtk3
json-glib
lerc
libdatrie
libepoxy
libnghttp2
libpsl
libselinux
libsepol
libsoup_3
libsysprof-capture
libthai
libxkbcommon
pcre2
sqlite
util-linux
libXdmcp
libXtst
];
hardeningDisable = [ "fortify" ];
cmakeFlags = [
(lib.cmakeFeature "CMAKE_INSTALL_DATAROOTDIR" "${placeholder "out"}/share")
(lib.cmakeFeature "CMAKE_INSTALL_SERVICEDIR" "${placeholder "out"}/lib")
];
meta = {
homepage = "http://www.hardinfo2.org";
description = "System information and benchmarks for Linux systems";
license = with lib.licenses; [
gpl2Plus
gpl3Plus
lgpl2Plus
];
maintainers = with lib.maintainers; [ sigmanificient ];
platforms = lib.platforms.linux;
mainProgram = "hardinfo2";
};
})
|