From 328a2cec7331832de26f29ed6e0c7d60b373bd96 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Fri, 10 Apr 2015 22:35:34 +0200 Subject: [PATCH] Add package for 'fira-mono'. --- pkgs/data/fonts/fira-mono/default.nix | 33 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/data/fonts/fira-mono/default.nix diff --git a/pkgs/data/fonts/fira-mono/default.nix b/pkgs/data/fonts/fira-mono/default.nix new file mode 100644 index 000000000000..92d6b1e25b5c --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9ebafe4e048f..9791a54e3156 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9754,6 +9754,8 @@ let fira = callPackage ../data/fonts/fira { }; + fira-mono = callPackage ../data/fonts/fira-mono { }; + freefont_ttf = callPackage ../data/fonts/freefont-ttf { }; freepats = callPackage ../data/misc/freepats { };