nixpkgs/pkgs/tools/system/efibootmgr/default.nix

30 lines
846 B
Nix
Raw Normal View History

2014-06-10 23:15:58 +00:00
{ stdenv, fetchgit, perl, efivar, pciutils, zlib }:
2014-06-10 23:15:58 +00:00
stdenv.mkDerivation rec {
name = "efibootmgr-${version}";
2015-05-11 14:25:17 +00:00
version = "0.11.0";
2014-06-10 23:15:58 +00:00
buildInputs = [ perl efivar pciutils zlib ];
2014-06-10 23:15:58 +00:00
src = fetchgit {
2015-05-11 14:25:17 +00:00
url = "git://github.com/rhinstaller/efibootmgr.git";
2014-06-10 23:15:58 +00:00
rev = "refs/tags/${name}";
2015-05-11 14:25:17 +00:00
sha256 = "1di7cipi6jh4qaiq1ckyk6aimgpagb85yr37k3c1kj1m9p5qra4j";
};
postPatch = ''
substituteInPlace "./tools/install.pl" \
--replace "/usr/bin/perl" "${perl}/bin/perl"
'';
2014-06-10 23:15:58 +00:00
installFlags = [ "BINDIR=$(out)/sbin" ];
2014-06-10 23:15:58 +00:00
meta = with stdenv.lib; {
description = "A Linux user-space application to modify the Intel Extensible Firmware Interface (EFI) Boot Manager";
homepage = http://linux.dell.com/efibootmgr/;
2014-06-10 23:15:58 +00:00
license = licenses.gpl2;
maintainers = with maintainers; [ shlevy ];
platforms = platforms.linux;
};
}