at v192 835 B view raw
1{ stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 name = "source-code-pro-${version}"; 5 version = "2.010"; 6 version_italic = "1.030"; 7 8 src = fetchurl { 9 url="https://github.com/adobe-fonts/source-code-pro/archive/${version}R-ro/${version_italic}R-it.tar.gz"; 10 sha256="12wijgxrdzqxpw2q420nsq9aj454vhg3rq6n81jbqvgzxhxjpf7w"; 11 }; 12 13 phases = "unpackPhase installPhase"; 14 15 installPhase = '' 16 mkdir -p $out/share/fonts/opentype 17 find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \; 18 ''; 19 20 meta = { 21 description = "A set of monospaced OpenType fonts designed for coding environments"; 22 maintainers = with stdenv.lib.maintainers; [ relrod ]; 23 platforms = with stdenv.lib.platforms; all; 24 homepage = "http://blog.typekit.com/2012/09/24/source-code-pro/"; 25 license = stdenv.lib.licenses.ofl; 26 }; 27}