efibootmgr: Create patch to allow arbitrary loader filenames

This is required for the NixOS efiBootStub module, since the default 40
characters is not enough for efi\nixos\{hash}-linux-3.3-rc7-bzImage.efi

svn path=/nixpkgs/trunk/; revision=33049
This commit is contained in:
Shea Levy
2012-03-13 21:32:09 +00:00
parent 63b934c36f
commit 21d7f598c8
2 changed files with 26 additions and 1 deletions
+2 -1
View File
@@ -7,13 +7,14 @@ stdenv.mkDerivation {
buildInputs = [ pciutils zlib perl ];
patches = [ ./arbitrary-filenames.patch ];
src = fetchurl {
url = "http://linux.dell.com/efibootmgr/permalink/efibootmgr-${version}.tar.gz";
sha256 = "0wcfgf8x4p4xfh38m9x3njwsxibm9bhnmvpjj94lj9sk9xxa8qmm";
};
patchPhase = ''
postPatch = ''
substituteInPlace "./tools/install.pl" \
--replace "/usr/bin/perl" "${perl}/bin/perl"
'';