nixpkgs/pkgs/data/fonts/font-awesome-ttf/default.nix

31 lines
874 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub }:
2015-04-26 11:44:43 +02:00
stdenv.mkDerivation rec {
name = "font-awesome-${version}";
version = "4.6.3";
2015-04-26 11:44:43 +02:00
src = fetchFromGitHub {
owner = "FortAwesome";
repo = "Font-Awesome";
rev = "v${version}";
sha256 = "135k1xskksqzriad9zzcxa79iprldyp2bnmc22wslak0dvjz74w0";
2015-04-26 11:44:43 +02:00
};
buildCommand = ''
mkdir -p $out/share/fonts/truetype
cp $src/fonts/*.ttf $out/share/fonts/truetype
2015-04-26 11:44:43 +02:00
'';
meta = with stdenv.lib; {
2015-04-26 11:44:43 +02:00
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 = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ abaldeau ];
2015-04-26 11:44:43 +02:00
};
}