Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 62d4c2b34a10
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6a347bca67e9
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on May 5, 2019

  1. ipxe: enable UEFI support

    edef1c committed May 5, 2019
    Copy the full SHA
    ff4db30 View commit details

Commits on May 25, 2019

  1. Merge pull request #60984 from edef1c/ipxe-uefi

    ipxe: enable UEFI support
    edef1c authored May 25, 2019
    Copy the full SHA
    6a347bc View commit details
Showing with 14 additions and 3 deletions.
  1. +14 −3 pkgs/tools/misc/ipxe/default.nix
17 changes: 14 additions & 3 deletions pkgs/tools/misc/ipxe/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
{ stdenv, lib, fetchgit, perl, cdrkit, syslinux, xz, openssl
{ stdenv, lib, fetchgit, perl, cdrkit, syslinux, xz, openssl, gnu-efi
, embedScript ? null
}:

let
date = "20190318";
rev = "ebf2eaf515e46abd43bc798e7e4ba77bfe529218";
targets = [
"bin-x86_64-efi/ipxe.efi"
"bin/ipxe.dsk"
"bin/ipxe.usb"
"bin/ipxe.iso"
"bin/ipxe.lkrn"
"bin/undionly.kpxe"
];
in

stdenv.mkDerivation {
name = "ipxe-${date}-${builtins.substring 0 7 rev}";

buildInputs = [ perl cdrkit syslinux xz openssl ];
buildInputs = [ perl cdrkit syslinux xz openssl gnu-efi ];

src = fetchgit {
url = https://git.ipxe.org/ipxe.git;
@@ -36,14 +44,17 @@ stdenv.mkDerivation {
runHook preConfigure
for opt in $enabledOptions; do echo "#define $opt" >> src/config/general.h; done
sed -i '/cp \''${ISOLINUX_BIN}/s/$/ --no-preserve=mode/' src/util/geniso
substituteInPlace src/Makefile.housekeeping --replace '/bin/echo' echo
runHook postConfigure
'';

preBuild = "cd src";

buildFlags = targets;

installPhase = ''
mkdir -p $out
cp bin/ipxe.dsk bin/ipxe.usb bin/ipxe.iso bin/ipxe.lkrn bin/undionly.kpxe $out
cp ${lib.concatStringsSep " " targets} $out
# 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.