nerdfonts: Use patchShebangs

In commit e8e191a1be9d after v2.0.0, nerdfonts switched from #!/bin/bash
to #!/usr/bin/env bash.  Rather than synchronizing this patching with
that change, just use patchShebangs which handles both cases.
This commit is contained in:
Chuck 2019-10-03 15:18:06 -07:00
parent 6dbb7b2437
commit 9cb9e6509e

View file

@ -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 = ''