coreboot-utils: add missing phase hooks
Also fix `unclear-gpl`: https://review.coreboot.org/plugins/gitiles/coreboot/+/refs/heads/master#copyright-and-license
This commit is contained in:
parent
b43389f49d
commit
0db6011c7f
1 changed files with 15 additions and 3 deletions
|
@ -6,7 +6,7 @@ let
|
||||||
commonMeta = with lib; {
|
commonMeta = with lib; {
|
||||||
description = "Various coreboot-related tools";
|
description = "Various coreboot-related tools";
|
||||||
homepage = "https://www.coreboot.org";
|
homepage = "https://www.coreboot.org";
|
||||||
license = licenses.gpl2;
|
license = with licenses; [ gpl2Only gpl2Plus ];
|
||||||
maintainers = with maintainers; [ petabyteboy felixsinger yuka ];
|
maintainers = with maintainers; [ petabyteboy felixsinger yuka ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
|
@ -81,7 +81,13 @@ let
|
||||||
amdfwtool = generic {
|
amdfwtool = generic {
|
||||||
pname = "amdfwtool";
|
pname = "amdfwtool";
|
||||||
meta.description = "Create AMD firmware combination";
|
meta.description = "Create AMD firmware combination";
|
||||||
installPhase = "install -Dm755 amdfwtool $out/bin/amdfwtool";
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -Dm755 amdfwtool $out/bin/amdfwtool
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
acpidump-all = generic {
|
acpidump-all = generic {
|
||||||
pname = "acpidump-all";
|
pname = "acpidump-all";
|
||||||
|
@ -89,7 +95,13 @@ let
|
||||||
meta.description = "Walk through all ACPI tables with their addresses";
|
meta.description = "Walk through all ACPI tables with their addresses";
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
installPhase = "install -Dm755 acpidump-all $out/bin/acpidump-all";
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -Dm755 acpidump-all $out/bin/acpidump-all
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
postFixup = let
|
postFixup = let
|
||||||
binPath = [ coreutils acpica-tools gnugrep gnused file ];
|
binPath = [ coreutils acpica-tools gnugrep gnused file ];
|
||||||
in "wrapProgram $out/bin/acpidump-all --set PATH ${lib.makeBinPath binPath}";
|
in "wrapProgram $out/bin/acpidump-all --set PATH ${lib.makeBinPath binPath}";
|
||||||
|
|
Loading…
Reference in a new issue