nixpkgs/pkgs/data/fonts/font-awesome-ttf/default.nix
2015-11-27 22:42:59 +06:00

29 lines
863 B
Nix

{stdenv, fetchurl, unzip}:
stdenv.mkDerivation rec {
name = "font-awesome-4.5.0";
src = fetchurl {
url = "http://fortawesome.github.io/Font-Awesome/assets/${name}.zip";
sha256 = "1lvxs4isrk80cczq6nrxksvqxs04k13i23i6c2l5vmfs2ndjsdm2";
};
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 ];
};
}