mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #193372 from danth/coreboot-configurator
This commit is contained in:
commit
709f08fc84
2 changed files with 45 additions and 0 deletions
43
pkgs/tools/misc/coreboot-configurator/default.nix
Normal file
43
pkgs/tools/misc/coreboot-configurator/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue