Merge pull request #70356 from chkno/nerdfonts-shebangs
nerdfonts: Use patchShebangs
This commit is contained in:
commit
f86d3c2f78
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, bash, which, withFont ? "" }:
|
||||
{ stdenv, fetchFromGitHub, which, withFont ? "" }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.0.0";
|
||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
|||
dontPatchShebangs = true;
|
||||
buildInputs = [ which ];
|
||||
patchPhase = ''
|
||||
sed -i -e 's|/bin/bash|${bash}/bin/bash|g' install.sh
|
||||
patchShebangs install.sh
|
||||
sed -i -e 's|font_dir="\$HOME/.local/share/fonts|font_dir="$out/share/fonts/truetype|g' install.sh
|
||||
'';
|
||||
installPhase = ''
|
||||
|
|
Loading…
Reference in a new issue