Merge pull request #7672 from baldo/font-awesome
Added Font Awesome TTF font.
This commit is contained in:
commit
0f8203d120
31
pkgs/data/fonts/font-awesome-ttf/default.nix
Normal file
31
pkgs/data/fonts/font-awesome-ttf/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{stdenv, fetchurl, unzip}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "font-awesome-4.3.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://fortawesome.github.io/Font-Awesome/assets/${name}.zip";
|
||||||
|
sha256 = "018syfvkj01jym60mpys93xv84ky9l2x90gprnm9npzwkw5169jc";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildCommand = ''
|
||||||
|
${unzip}/bin/unzip $src
|
||||||
|
mkdir -p $out/share/fonts/truetype
|
||||||
|
cp */fonts/*.ttf $out/share/fonts/truetype
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Font Awesome - TTF font";
|
||||||
|
|
||||||
|
longDescription = ''
|
||||||
|
Font Awesome gives you scalable vector icons that can instantly be customized.
|
||||||
|
This package includes only the TTF font. For full CSS etc. see the project website.
|
||||||
|
'';
|
||||||
|
|
||||||
|
homepage = "http://fortawesome.github.io/Font-Awesome/";
|
||||||
|
license = stdenv.lib.licenses.ofl;
|
||||||
|
|
||||||
|
platforms = stdenv.lib.platforms.all;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.abaldeau ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -9946,6 +9946,8 @@ let
|
||||||
|
|
||||||
fira-mono = callPackage ../data/fonts/fira-mono { };
|
fira-mono = callPackage ../data/fonts/fira-mono { };
|
||||||
|
|
||||||
|
font-awesome-ttf = callPackage ../data/fonts/font-awesome-ttf { };
|
||||||
|
|
||||||
freefont_ttf = callPackage ../data/fonts/freefont-ttf { };
|
freefont_ttf = callPackage ../data/fonts/freefont-ttf { };
|
||||||
|
|
||||||
freepats = callPackage ../data/misc/freepats { };
|
freepats = callPackage ../data/misc/freepats { };
|
||||||
|
|
Loading…
Reference in a new issue