summary refs log tree commit diff
path: root/pkgs/data/fonts/nerdfonts
diff options
context:
space:
mode:
authorChuck <chuck@intelligence.org>2019-10-03 15:18:06 -0700
committerChuck <chuck@intelligence.org>2019-10-03 15:18:06 -0700
commit9cb9e6509ee66f6089b73fa765728182aeaa2d77 (patch)
treefc431c7f70757dcc2af632abb691a74b225c2e25 /pkgs/data/fonts/nerdfonts
parent6dbb7b24372408d37bbcc76eb31f83899d408ba4 (diff)
downloadnixpkgs-9cb9e6509ee66f6089b73fa765728182aeaa2d77.tar
nixpkgs-9cb9e6509ee66f6089b73fa765728182aeaa2d77.tar.gz
nixpkgs-9cb9e6509ee66f6089b73fa765728182aeaa2d77.tar.bz2
nixpkgs-9cb9e6509ee66f6089b73fa765728182aeaa2d77.tar.lz
nixpkgs-9cb9e6509ee66f6089b73fa765728182aeaa2d77.tar.xz
nixpkgs-9cb9e6509ee66f6089b73fa765728182aeaa2d77.tar.zst
nixpkgs-9cb9e6509ee66f6089b73fa765728182aeaa2d77.zip
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.
Diffstat (limited to 'pkgs/data/fonts/nerdfonts')
-rw-r--r--pkgs/data/fonts/nerdfonts/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/data/fonts/nerdfonts/default.nix b/pkgs/data/fonts/nerdfonts/default.nix
index 59b0f89e45e..454cbc09281 100644
--- a/pkgs/data/fonts/nerdfonts/default.nix
+++ b/pkgs/data/fonts/nerdfonts/default.nix
@@ -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 = ''