nixpkgs/pkgs/data/fonts/source-code-pro/default.nix
2015-11-21 21:20:39 -04:00

27 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="1y44p2i7hd1klq81xbh796y7n4rzjvn37jrqw0nz31k59v8a1r9y";
};
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;
};
}