diff options
author | Robert Helgesson <robert@rycee.net> | 2015-04-10 22:35:34 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2015-04-10 23:40:22 +0200 |
commit | 328a2cec7331832de26f29ed6e0c7d60b373bd96 (patch) | |
tree | 00240a11eff19f1f3cd4a869d4a458713f736d4f /pkgs/data | |
parent | 86bead829a9adea886bb688de6f2e11c3afa7e55 (diff) |
Add package for 'fira-mono'.
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/fira-mono/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/data/fonts/fira-mono/default.nix b/pkgs/data/fonts/fira-mono/default.nix new file mode 100644 index 0000000000000..92d6b1e25b5cf --- /dev/null +++ b/pkgs/data/fonts/fira-mono/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + name = "fira-mono-3.2"; + + src = fetchurl { + url = http://www.carrois.com/downloads/fira_mono_3_2/FiraMonoFonts3200.zip; + sha256 = "0g3i54q8czf3vylgasj62w2n7l1a2yrbyibjlx1qk3awh7fr1r7p"; + }; + + buildInputs = [ unzip ]; + phases = [ "unpackPhase" "installPhase" ]; + sourceRoot = "FiraMonoFonts3200"; + + installPhase = '' + mkdir -p $out/share/fonts/opentype + find . -name "*.otf" -exec cp -v {} $out/share/fonts/opentype \; + ''; + + meta = with stdenv.lib; { + homepage = http://www.carrois.com/fira-4-1/; + description = "Monospace font for Firefox OS"; + longDescription = '' + Fira Mono is a monospace font designed by Erik Spiekermann, + Ralph du Carrois, Anja Meiners and Botio Nikoltchev of Carrois + Type Design for Mozilla Firefox OS. Available in Regular, + Medium, and Bold. + ''; + license = licenses.ofl; + maintainers = [ maintainers.rycee ]; + platforms = platforms.all; + }; +} |