blob: 7e0a6d0c706e1261a3b23362259e2b4628453fa2 (
plain) (
blame)
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
|
{ lib
, stdenv
, fetchFromGitHub
, inkscape
, meson
, ninja
, pkg-config
, yaml-cpp
, nvramtool
, qtbase
, qtsvg
, wrapQtAppsHook
}:
stdenv.mkDerivation {
pname = "coreboot-configurator";
version = "unstable-2022-08-22";
src = fetchFromGitHub {
owner = "StarLabsLtd";
repo = "coreboot-configurator";
rev = "37c93e7e101a20f85be309904177b9404875cfd8";
sha256 = "2pk+uJk1EnVNO2vO1zF9Q6TLpij69iRdr5DFiNcZlM0=";
};
nativeBuildInputs = [ inkscape meson ninja pkg-config wrapQtAppsHook ];
buildInputs = [ yaml-cpp qtbase qtsvg ];
postPatch = ''
substituteInPlace src/application/*.cpp \
--replace '/usr/bin/pkexec' 'sudo' \
--replace '/usr/bin/systemctl' 'systemctl' \
--replace '/usr/sbin/nvramtool' '${nvramtool}/bin/nvramtool'
'';
postFixup = ''
substituteInPlace $out/share/applications/coreboot-configurator.desktop \
--replace '/usr/bin/coreboot-configurator' 'coreboot-configurator'
'';
meta = with lib; {
description = "A simple GUI to change settings in Coreboot's CBFS";
homepage = "https://support.starlabs.systems/kb/guides/coreboot-configurator";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = with maintainers; [ danth ];
};
}
|