summary refs log tree commit diff
path: root/pkgs/tools/bootloaders
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@gmail.com>2015-11-01 09:35:28 -0200
committerAndersonTorres <torres.anderson.85@gmail.com>2015-11-01 09:37:00 -0200
commit124e832c37312e14cebf573c2ed85188e243d7cb (patch)
treed65b8f24e1357537a37a3173e97ccae8be6725b1 /pkgs/tools/bootloaders
parented1355e0f1ad961139263485f72e9b0c6d9a8d3c (diff)
downloadnixpkgs-124e832c37312e14cebf573c2ed85188e243d7cb.tar
nixpkgs-124e832c37312e14cebf573c2ed85188e243d7cb.tar.gz
nixpkgs-124e832c37312e14cebf573c2ed85188e243d7cb.tar.bz2
nixpkgs-124e832c37312e14cebf573c2ed85188e243d7cb.tar.lz
nixpkgs-124e832c37312e14cebf573c2ed85188e243d7cb.tar.xz
nixpkgs-124e832c37312e14cebf573c2ed85188e243d7cb.tar.zst
nixpkgs-124e832c37312e14cebf573c2ed85188e243d7cb.zip
refind: 0.8.4 -> 0.9.2
Diffstat (limited to 'pkgs/tools/bootloaders')
-rw-r--r--pkgs/tools/bootloaders/refind/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/tools/bootloaders/refind/default.nix b/pkgs/tools/bootloaders/refind/default.nix
index 896a02be2b5..7a57225ce8e 100644
--- a/pkgs/tools/bootloaders/refind/default.nix
+++ b/pkgs/tools/bootloaders/refind/default.nix
@@ -5,12 +5,11 @@ assert (stdenv.system == "x86_64-linux" ||stdenv.system == "i686-linux");
 
 stdenv.mkDerivation rec {
 
-  name = "refind-${version}";
-  srcName = "refind-src-${version}";
-  version = "0.9.2";
+  name = "refind-${meta.version}";
+  srcName = "refind-src-${meta.version}";
 
   src = fetchurl {
-    url = "http://downloads.sourceforge.net/project/refind/${version}/${srcName}.zip";
+    url = "http://downloads.sourceforge.net/project/refind/${meta.version}/${srcName}.zip";
     sha256 = "0ai150rzx20sfl92j6y1p6qnyy0wbmazrlp2fg19acs98qyxl8lh";
   };
 
@@ -18,7 +17,8 @@ stdenv.mkDerivation rec {
 
   HOSTARCH =
     if stdenv.system == "x86_64-linux" then "x64"
-    else if stdenv.system == "i686-linux" then "ia32" else "null";
+    else if stdenv.system == "i686-linux" then "ia32"
+    else "null";
 
   patchPhase = ''
     sed -e 's|-DEFI_FUNCTION_WRAPPER|-DEFI_FUNCTION_WRAPPER -maccumulate-outgoing-args|g' -i Make.common
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
       if stdenv.system == "x86_64-linux" then "elf_x86_64_efi.lds"
       else if stdenv.system == "i686-linux" then "elf_ia32_efi.lds" else "null";
     in ''
-      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
+      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
     '';
 
   installPhase = ''
@@ -94,6 +94,7 @@ stdenv.mkDerivation rec {
   '';
 
   meta = with stdenv.lib; {
+    version = "0.9.2";
     description = "A graphical {,U}EFI boot manager";
     longDescription = ''
       rEFInd is a graphical boot manager for EFI- and UEFI-based
@@ -116,4 +117,3 @@ stdenv.mkDerivation rec {
   };
 
 }
-# TODO: detect CPU host architecture (HOSTARCH can be ia32 or x64)