nixpkgs/pkgs/data/fonts/source-serif-pro/default.nix

28 lines
748 B
Nix
Raw Normal View History

2015-04-29 22:45:13 +00:00
{ stdenv, fetchurl }:
2014-05-26 19:58:31 +00:00
2015-04-29 22:45:13 +00:00
stdenv.mkDerivation rec {
name = "source-serif-pro-${version}";
version = "1.017";
2014-05-26 19:58:31 +00:00
2015-04-29 22:45:13 +00:00
src = fetchurl rec {
url = "https://github.com/adobe-fonts/source-serif-pro/archive/${version}R.tar.gz";
sha256 = "04h24iywjl4fd08x22ypdb3sm979wjfq4wk95r3rk8w376spakrg";
};
2014-05-26 19:58:31 +00:00
phases = "unpackPhase installPhase";
installPhase = ''
mkdir -p $out/share/fonts/opentype
find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \;
'';
meta = with stdenv.lib; {
homepage = http://sourceforge.net/adobe/sourceserifpro;
description = "A set of OpenType fonts to complement Source Sans Pro";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ ttuegel ];
};
}