From cebc43403ac33ed985353dca24a0bf67ad0c259b Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Thu, 12 Mar 2015 23:14:21 +0100 Subject: Add packages for a number of fonts. The added fonts are - Caladea, - Carlito, - Comfortaa, - Comic Relief, - Crimson, - Fantasque Sans Mono, - Lobster Two, - Pecita, - Quattrocento, and - Quattrocento Sans. --- pkgs/data/fonts/fantasque-sans-mono/default.nix | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/data/fonts/fantasque-sans-mono/default.nix (limited to 'pkgs/data/fonts/fantasque-sans-mono') diff --git a/pkgs/data/fonts/fantasque-sans-mono/default.nix b/pkgs/data/fonts/fantasque-sans-mono/default.nix new file mode 100644 index 00000000000..930c0a22520 --- /dev/null +++ b/pkgs/data/fonts/fantasque-sans-mono/default.nix @@ -0,0 +1,34 @@ +{stdenv, fetchurl, unzip}: + +stdenv.mkDerivation rec { + name = "fantasque-sans-mono-${version}"; + version = "1.6.5"; + + src = fetchurl { + url = "https://github.com/belluzj/fantasque-sans/releases/download/v${version}/FantasqueSansMono.zip"; + sha256 = "19a82xlbcnd7dxqmpp03b62gjvi33bh635r0bjw2l09lgir6alym"; + }; + + buildInputs = [unzip]; + phases = ["unpackPhase" "installPhase"]; + + unpackCmd = '' + mkdir -p ${name} + unzip -qq -d ${name} $src + ''; + + installPhase = '' + mkdir -p $out/share/fonts/opentype + mkdir -p $out/share/doc/${name} + cp -v "OTF/"*.otf $out/share/fonts/opentype + cp -v README.md $out/share/doc/${name} + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/belluzj/fantasque-sans; + description = "A font family with a great monospaced variant for programmers"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = [maintainers.rycee]; + }; +} -- cgit 1.4.1