diff options
author | Kid <44045911+kidonng@users.noreply.github.com> | 2021-08-08 13:33:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 03:46:14 +0000 |
commit | 0db6011c7faf44e9b0259621241a8e638f0c0fde (patch) | |
tree | 42b3e436819719e14090cb31ffe955583eaf3fd7 /pkgs/tools/misc/coreboot-utils | |
parent | b43389f49d52db6084abf6ad26872e8d93d74fc7 (diff) |
coreboot-utils: add missing phase hooks
Also fix `unclear-gpl`: https://review.coreboot.org/plugins/gitiles/coreboot/+/refs/heads/master#copyright-and-license
Diffstat (limited to 'pkgs/tools/misc/coreboot-utils')
-rw-r--r-- | pkgs/tools/misc/coreboot-utils/default.nix | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/pkgs/tools/misc/coreboot-utils/default.nix b/pkgs/tools/misc/coreboot-utils/default.nix index 7b47f904a98f0..36e82903a7e4c 100644 --- a/pkgs/tools/misc/coreboot-utils/default.nix +++ b/pkgs/tools/misc/coreboot-utils/default.nix @@ -6,7 +6,7 @@ let commonMeta = with lib; { description = "Various coreboot-related tools"; homepage = "https://www.coreboot.org"; - license = licenses.gpl2; + license = with licenses; [ gpl2Only gpl2Plus ]; maintainers = with maintainers; [ petabyteboy felixsinger yuka ]; platforms = platforms.linux; }; @@ -81,7 +81,13 @@ let amdfwtool = generic { pname = "amdfwtool"; 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 { pname = "acpidump-all"; @@ -89,7 +95,13 @@ let meta.description = "Walk through all ACPI tables with their addresses"; nativeBuildInputs = [ makeWrapper ]; 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 binPath = [ coreutils acpica-tools gnugrep gnused file ]; in "wrapProgram $out/bin/acpidump-all --set PATH ${lib.makeBinPath binPath}"; |