1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00
nixpkgs/pkgs/data/fonts/source-code-pro/default.nix
Linus Arver 19c6cf7756 source-code-pro: update to 2.010 (close #8906)
The font includes a separate versioning scheme for the italic fonts, so
we encode that as well.

/cc maintainer @relrod.
2015-07-30 18:52:58 +02:00

28 lines
835 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "source-code-pro-${version}";
version = "2.010";
version_italic = "1.030";
src = fetchurl {
url="https://github.com/adobe-fonts/source-code-pro/archive/${version}R-ro/${version_italic}R-it.tar.gz";
sha256="12wijgxrdzqxpw2q420nsq9aj454vhg3rq6n81jbqvgzxhxjpf7w";
};
phases = "unpackPhase installPhase";
installPhase = ''
mkdir -p $out/share/fonts/opentype
find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \;
'';
meta = {
description = "A set of monospaced OpenType fonts designed for coding environments";
maintainers = with stdenv.lib.maintainers; [ relrod ];
platforms = with stdenv.lib.platforms; all;
homepage = "http://blog.typekit.com/2012/09/24/source-code-pro/";
license = stdenv.lib.licenses.ofl;
};
}