2013-10-09 20:01:36 +02:00
|
|
|
{ stdenv, fetchurl, gnu-efi, unzip }:
|
2012-03-29 16:54:17 +02:00
|
|
|
|
2012-10-07 22:54:02 +02:00
|
|
|
let version = "0.4.5"; in
|
2012-03-29 16:54:17 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "refind-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/refind/refind-src-${version}.zip";
|
2012-10-07 22:54:02 +02:00
|
|
|
sha256 = "05nbalsl5csgph0v2amzgay9k2vzm47z8n1n6blbh9hvb7j5vn2c";
|
2012-03-29 16:54:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
2013-10-09 20:01:36 +02:00
|
|
|
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" ];
|
2012-03-29 16:54:17 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out
|
2012-10-07 22:54:02 +02:00
|
|
|
install -v -m644 refind/refind*.efi refind.conf-sample $out
|
2012-03-29 16:54:17 +02:00
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|