git.iko.soy/typeable/nixpkgs
on master help sign in
Added Font Awesome TTF font.
commitc7bb01cfa24ecc1c8d8f63f2c0d4f886bf0a32d2 authorAndreas Baldeau <andreas@baldeau.net> dateSun 26 Apr 2015, 11:44 (12 years ago) parent365fd9e
2 files changed+33
pkgs/data/fonts/font-awesome-ttf/default.nix+31 pkgs/top-level/all-packages.nix+2
pkgs/data/fonts/font-awesome-ttf/default.nixnew file+31
@@ -0,0 +1,31 @@
1+{stdenv, fetchurl, unzip}:
2+
3+stdenv.mkDerivation rec {
4+ name = "font-awesome-4.3.0";
5+
6+ src = fetchurl {
7+ url = "http://fortawesome.github.io/Font-Awesome/assets/${name}.zip";
8+ sha256 = "018syfvkj01jym60mpys93xv84ky9l2x90gprnm9npzwkw5169jc";
9+ };
10+
11+ buildCommand = ''
12+ ${unzip}/bin/unzip $src
13+ mkdir -p $out/share/fonts/truetype
14+ cp */fonts/*.ttf $out/share/fonts/truetype
15+ '';
16+
17+ meta = {
18+ description = "Font Awesome - TTF font";
19+
20+ longDescription = ''
21+ Font Awesome gives you scalable vector icons that can instantly be customized.
22+ This package includes only the TTF font. For full CSS etc. see the project website.
23+ '';
24+
25+ homepage = "http://fortawesome.github.io/Font-Awesome/";
26+ license = stdenv.lib.licenses.ofl;
27+
28+ platforms = stdenv.lib.platforms.all;
29+ maintainers = [ stdenv.lib.maintainers.abaldeau ];
30+ };
31+}
pkgs/top-level/all-packages.nix+2
@@ -9946,6 +9946,8 @@ let
99469946
99479947 fira-mono = callPackage ../data/fonts/fira-mono { };
99489948
9949+ font-awesome-ttf = callPackage ../data/fonts/font-awesome-ttf { };
9950+
99499951 freefont_ttf = callPackage ../data/fonts/freefont-ttf { };
99509952
99519953 freepats = callPackage ../data/misc/freepats { };