data/fonts: simpler cleanups

This commit is contained in:
Volth
2017-08-11 14:26:03 +00:00
parent 691da0cbb9
commit 31c344982f
95 changed files with 865 additions and 1088 deletions
+9 -11
View File
@@ -1,21 +1,19 @@
{ stdenv, fetchurl }:
{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
name = "source-serif-pro-${version}";
let
version = "1.017";
in fetchzip {
name = "source-serif-pro-${version}";
src = fetchurl rec {
url = "https://github.com/adobe-fonts/source-serif-pro/archive/${version}R.tar.gz";
sha256 = "04h24iywjl4fd08x22ypdb3sm979wjfq4wk95r3rk8w376spakrg";
};
url = "https://github.com/adobe-fonts/source-serif-pro/archive/${version}R.zip";
phases = "unpackPhase installPhase";
installPhase = ''
postFetch = ''
mkdir -p $out/share/fonts/opentype
find . -name "*.otf" -exec cp {} $out/share/fonts/opentype \;
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
'';
sha256 = "04447fbj7lwr2qmmvy7d7624qdh4in7hp627nsc8vbpxmb7bbmn1";
meta = with stdenv.lib; {
homepage = http://sourceforge.net/adobe/sourceserifpro;
description = "A set of OpenType fonts to complement Source Sans Pro";