diff options
author | John Garcia <jgarcia3788@yahoo.co.uk> | 2024-03-11 19:53:35 +0000 |
---|---|---|
committer | John Garcia <jgarcia3788@yahoo.co.uk> | 2024-03-13 13:38:06 +0000 |
commit | 39b125de85ac3a8205a1742cf6093f13608675c2 (patch) | |
tree | 21387159a8ce29312d8afefac728afa7cd23476d | |
parent | e801d18240ec4b2b0f96d978f77eb3ed9a47600d (diff) |
refind: fix sed statements
-rw-r--r-- | pkgs/tools/bootloaders/refind/default.nix | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/pkgs/tools/bootloaders/refind/default.nix b/pkgs/tools/bootloaders/refind/default.nix index 258fe25822a2..4a5805a4c57f 100644 --- a/pkgs/tools/bootloaders/refind/default.nix +++ b/pkgs/tools/bootloaders/refind/default.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { version = "0.14.0.2"; src = fetchurl { - url = "mirror://sourceforge/project/refind/${version}/${pname}-src-${version}.tar.gz"; + url = "mirror://sourceforge/project/refind/${version}/refind-src-${version}.tar.gz"; hash = "sha256-JqDFXf01ZUmeH4LY/ldGTb7xnKiGzm0BqBUii478iw8="; }; @@ -95,14 +95,7 @@ stdenv.mkDerivation rec { install -D -m0644 keys/* $out/share/refind/keys/ # Fix variable definition of 'RefindDir' which is used to locate ressource files. - sed -i "s,\bRefindDir=.*,RefindDir=$out/share/refind,g" $out/bin/refind-install - - # Patch uses of `which`. We could patch in calls to efibootmgr, - # openssl, convert, and openssl, but that would greatly enlarge - # refind's closure (from ca 28MB to over 400MB). - sed -i 's,`which \(.*\)`,`type -p \1`,g' $out/bin/refind-install - sed -i 's,`which \(.*\)`,`type -p \1`,g' $out/bin/refind-mvrefind - sed -i 's,`which \(.*\)`,`type -p \1`,g' $out/bin/refind-mkfont + sed -i "s,\bRefindDir=\"\$This.*,RefindDir=$out/share/refind,g" $out/bin/refind-install runHook postInstall ''; |