about summary refs log tree commit diff
path: root/pkgs/tools/misc/ipxe
diff options
context:
space:
mode:
authormisuzu <bakalolka@gmail.com>2021-07-14 12:46:41 +0300
committermisuzu <bakalolka@gmail.com>2021-07-14 12:47:12 +0300
commit2668c7588635db4abf51d68ba25bd00dcc78b8df (patch)
treeb3914403a70e1b649f116d587e1186f2e747738a /pkgs/tools/misc/ipxe
parenta14985cd2844187bd3441d1179abe5f478caedd8 (diff)
ipxe: fix installPhase and license
Diffstat (limited to 'pkgs/tools/misc/ipxe')
-rw-r--r--pkgs/tools/misc/ipxe/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/tools/misc/ipxe/default.nix b/pkgs/tools/misc/ipxe/default.nix
index 289f87dc784d9..4be0b3d417e4e 100644
--- a/pkgs/tools/misc/ipxe/default.nix
+++ b/pkgs/tools/misc/ipxe/default.nix
@@ -72,6 +72,8 @@ stdenv.mkDerivation rec {
   buildFlags = lib.attrNames targets;
 
   installPhase = ''
+    runHook preInstall
+
     mkdir -p $out
     ${lib.concatStringsSep "\n" (lib.mapAttrsToList (from: to:
       if to == null
@@ -81,6 +83,8 @@ stdenv.mkDerivation rec {
     # Some PXE constellations especially with dnsmasq are looking for the file with .0 ending
     # let's provide it as a symlink to be compatible in this case.
     ln -s undionly.kpxe $out/undionly.kpxe.0
+
+    runHook postInstall
   '';
 
   enableParallelBuilding = true;
@@ -88,7 +92,7 @@ stdenv.mkDerivation rec {
   meta = with lib;
     { description = "Network boot firmware";
       homepage = "https://ipxe.org/";
-      license = licenses.gpl2;
+      license = licenses.gpl2Only;
       maintainers = with maintainers; [ ehmry ];
       platforms = platforms.linux;
     };