mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
21d7f598c8
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
35 lines
888 B
Nix
35 lines
888 B
Nix
{stdenv, fetchurl, pciutils, perl, zlib}:
|
|
|
|
let version = "0.5.4"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "efibootmgr-${version}";
|
|
|
|
buildInputs = [ pciutils zlib perl ];
|
|
|
|
patches = [ ./arbitrary-filenames.patch ];
|
|
|
|
src = fetchurl {
|
|
url = "http://linux.dell.com/efibootmgr/permalink/efibootmgr-${version}.tar.gz";
|
|
sha256 = "0wcfgf8x4p4xfh38m9x3njwsxibm9bhnmvpjj94lj9sk9xxa8qmm";
|
|
};
|
|
|
|
postPatch = ''
|
|
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;
|
|
};
|
|
}
|
|
|