Merge pull request #193372 from danth/coreboot-configurator

This commit is contained in:
Sandro 2022-10-03 21:05:04 +02:00 committed by GitHub
commit 709f08fc84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, stdenv
, fetchFromGitHub
, inkscape
, meson
, ninja
, pkg-config
, libyamlcpp
, 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 = [ libyamlcpp qtbase qtsvg ];
postPatch = ''
substituteInPlace src/application/*.cpp \
--replace '/usr/bin/pkexec' 'sudo' \
--replace '/usr/bin/systemctl' 'systemctl' \
--replace '/usr/sbin/nvramtool' '${nvramtool}/bin/nvramtool'
'';
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 ];
};
}

View File

@ -3420,6 +3420,8 @@ with pkgs;
acpidump-all
coreboot-utils;
coreboot-configurator = libsForQt5.callPackage ../tools/misc/coreboot-configurator { };
corosync = callPackage ../servers/corosync { };
cowsay = callPackage ../tools/misc/cowsay { };