mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
f7a1c8c2f5
Signed-off-by: Shea Levy <shea@shealevy.com>
35 lines
858 B
Nix
35 lines
858 B
Nix
{ stdenv, fetchurl, gnu-efi, unzip }:
|
|
|
|
let version = "0.4.5"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "refind-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/refind/refind-src-${version}.zip";
|
|
sha256 = "05nbalsl5csgph0v2amzgay9k2vzm47z8n1n6blbh9hvb7j5vn2c";
|
|
};
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
buildFlags = [ "prefix=" "EFIINC=${gnu-efi}/include/efi" "GNUEFILIB=${gnu-efi}/lib" "EFILIB=${gnu-efi}/lib" "EFICRT0=${gnu-efi}/lib" "LOCAL_CFLAGS=-I${gnu-efi}/include" ];
|
|
|
|
installPhase = ''
|
|
mkdir -pv $out
|
|
install -v -m644 refind/refind*.efi refind.conf-sample $out
|
|
mv -v icons $out
|
|
'';
|
|
|
|
meta = {
|
|
description = "An EFI boot manager";
|
|
|
|
homepage = http://www.rodsbooks.com/refind/;
|
|
|
|
license = "GPLv3+";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ shlevy ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
};
|
|
}
|