git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #10775 from AndersonTorres/refind

refind: 0.8.4 -> 0.9.2

commitc9ff48b79bdcea78aeda406b34cd3efeb3957613 authorArseniy Seroka <jagajaga@users.noreply.github.com> dateMon 2 Nov 2015, 20:48 (11 years ago) parentc10589c124e832
1 file changed+7−7
pkgs/tools/bootloaders/refind/default.nix+7−7
pkgs/tools/bootloaders/refind/default.nix+7−7
@@ -5,12 +5,11 @@ assert (stdenv.system == "x86_64-linux" ||stdenv.system == "i686-linux");
55
66stdenv.mkDerivation rec {
77
8− name = "refind-${version}";
9− srcName = "refind-src-${version}";
10− version = "0.9.2";
8+ name = "refind-${meta.version}";
9+ srcName = "refind-src-${meta.version}";
1110
1211 src = fetchurl {
13− url = "http://downloads.sourceforge.net/project/refind/${version}/${srcName}.zip";
12+ url = "http://downloads.sourceforge.net/project/refind/${meta.version}/${srcName}.zip";
1413 sha256 = "0ai150rzx20sfl92j6y1p6qnyy0wbmazrlp2fg19acs98qyxl8lh";
1514 };
1615
@@ -18,7 +17,8 @@ stdenv.mkDerivation rec {
1817
1918 HOSTARCH =
2019 if stdenv.system == "x86_64-linux" then "x64"
21− else if stdenv.system == "i686-linux" then "ia32" else "null";
20+ else if stdenv.system == "i686-linux" then "ia32"
21+ else "null";
2222
2323 patchPhase = ''
2424 sed -e 's|-DEFI_FUNCTION_WRAPPER|-DEFI_FUNCTION_WRAPPER -maccumulate-outgoing-args|g' -i Make.common
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
3131 if stdenv.system == "x86_64-linux" then "elf_x86_64_efi.lds"
3232 else if stdenv.system == "i686-linux" then "elf_ia32_efi.lds" else "null";
3333 in ''
34− make prefix= EFIINC=${gnu-efi}/include/efi EFILIB=${gnu-efi}/lib GNUEFILIB=${gnu-efi}/lib EFICRT0=${gnu-efi}/lib LDSCRIPT=${gnu-efi}/lib/${ldScript} gnuefi fs_gnuefi
34+ make prefix= EFIINC=${gnu-efi}/include/efi EFILIB=${gnu-efi}/lib GNUEFILIB=${gnu-efi}/lib EFICRT0=${gnu-efi}/lib LDSCRIPT=${gnu-efi}/lib/${ldScript} gnuefi fs_gnuefi
3535 '';
3636
3737 installPhase = ''
@@ -94,6 +94,7 @@ stdenv.mkDerivation rec {
9494 '';
9595
9696 meta = with stdenv.lib; {
97+ version = "0.9.2";
9798 description = "A graphical {,U}EFI boot manager";
9899 longDescription = ''
99100 rEFInd is a graphical boot manager for EFI- and UEFI-based
@@ -116,4 +117,3 @@ stdenv.mkDerivation rec {
116117 };
117118
118119}
119−# TODO: detect CPU host architecture (HOSTARCH can be ia32 or x64)