1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/data/fonts/nerdfonts/default.nix

30 lines
1.1 KiB
Nix
Raw Normal View History

2016-05-14 22:31:47 -04:00
{ stdenv, fetchFromGitHub, bash, which }:
stdenv.mkDerivation rec {
version = "0.7.0";
name = "nerdfonts-${version}";
src = fetchFromGitHub {
owner = "ryanoasis";
repo = "nerd-fonts";
rev = version;
sha256 = "0q2h8hpkbid8idi2kvzx5bnhyh65y51k02g7xpv3drjqj08cz7y0";
};
dontPatchShebangs = true;
buildInputs = [ which ];
patchPhase = ''
sed -i -e 's|/bin/bash|${bash}/bin/bash|g' install.sh
2016-05-16 19:52:49 -04:00
sed -i -e 's|font_dir="\$HOME/.local/share/fonts|font_dir="$out/share/fonts/truetype|g' install.sh
2016-05-14 22:31:47 -04:00
'';
installPhase = ''
2016-05-16 19:52:49 -04:00
mkdir -p $out/share/fonts/truetype
2016-05-14 22:31:47 -04:00
./install.sh
'';
meta = with stdenv.lib; {
description = "Nerd Fonts is a project that attempts to patch as many developer targeted and/or used fonts as possible. The patch is to specifically add a high number of additional glyphs from popular 'iconic fonts' such as Font Awesome, Devicons, Octicons, and others.";
homepage = "https://github.com/ryanoasis/nerd-fonts";
license = licenses.mit;
maintainers = with maintainers; [ garbas ];
platforms = with platforms; unix;
2016-05-14 22:31:47 -04:00
};
}