2011-03-22 14:21:24 +01:00
|
|
|
{stdenv, fetchurl, pciutils, perl, zlib}:
|
|
|
|
|
|
|
|
let version = "0.5.4"; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "efibootmgr-${version}";
|
|
|
|
|
|
|
|
buildInputs = [ pciutils zlib perl ];
|
|
|
|
|
2012-03-13 22:32:09 +01:00
|
|
|
patches = [ ./arbitrary-filenames.patch ];
|
2011-03-22 14:21:24 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://linux.dell.com/efibootmgr/permalink/efibootmgr-${version}.tar.gz";
|
|
|
|
sha256 = "0wcfgf8x4p4xfh38m9x3njwsxibm9bhnmvpjj94lj9sk9xxa8qmm";
|
|
|
|
};
|
|
|
|
|
2012-03-13 22:32:09 +01:00
|
|
|
postPatch = ''
|
2011-03-22 14:21:24 +01:00
|
|
|
substituteInPlace "./tools/install.pl" \
|
|
|
|
--replace "/usr/bin/perl" "${perl}/bin/perl"
|
|
|
|
'';
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export makeFlags="BINDIR=$out/sbin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Linux user-space application to modify the Intel Extensible Firmware Interface (EFI) Boot Manager";
|
|
|
|
homepage = http://linux.dell.com/efibootmgr/;
|
|
|
|
license = "GPLv2";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|