diff options
author | Robert Helgesson <robert@rycee.net> | 2015-03-12 23:14:21 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2015-03-21 00:33:14 +0100 |
commit | cebc43403ac33ed985353dca24a0bf67ad0c259b (patch) | |
tree | db48f4784ca3e003688fa03d9988b311b81f5a7a /pkgs/data/fonts/quattrocento-sans | |
parent | 2fcb4118196157fac635351c7bd4e15ee9019db1 (diff) |
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.
Diffstat (limited to 'pkgs/data/fonts/quattrocento-sans')
-rw-r--r-- | pkgs/data/fonts/quattrocento-sans/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/data/fonts/quattrocento-sans/default.nix b/pkgs/data/fonts/quattrocento-sans/default.nix new file mode 100644 index 0000000000000..116fdd25a04ec --- /dev/null +++ b/pkgs/data/fonts/quattrocento-sans/default.nix @@ -0,0 +1,31 @@ +{stdenv, fetchurl, unzip}: + +stdenv.mkDerivation rec { + name = "quattrocento-sans-${version}"; + version = "2.0"; + + src = fetchurl { + url = "http://www.impallari.com/media/releases/quattrocento-sans-v${version}.zip"; + sha256 = "043jfdn18dgzpx3qb3s0hc541n6xv4gacsm4srd6f0pri45g4wh1"; + }; + + buildInputs = [unzip]; + phases = ["unpackPhase" "installPhase"]; + + sourceRoot = "quattrocento-sans-v${version}"; + + installPhase = '' + mkdir -p $out/share/fonts/opentype + mkdir -p $out/share/doc/${name} + cp -v "src/"*.otf $out/share/fonts/opentype + cp -v FONTLOG.txt $out/share/doc/${name} + ''; + + meta = with stdenv.lib; { + homepage = http://www.impallari.com/quattrocentosans/; + description = "A classic, elegant and sober sans-serif typeface"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = [maintainers.rycee]; + }; +} |