2022-09-29 09:52:55 +02:00
|
|
|
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
|
2021-03-21 04:09:22 +01:00
|
|
|
{ lib, stdenv, fetchzip }:
|
|
|
|
let
|
|
|
|
pname = "vollkorn";
|
|
|
|
version = "4.105";
|
|
|
|
in
|
2022-09-29 09:52:55 +02:00
|
|
|
(fetchzip {
|
2021-03-21 04:09:22 +01:00
|
|
|
name = "${pname}-${version}";
|
2021-03-26 11:56:17 +01:00
|
|
|
url = "http://vollkorn-typeface.com/download/vollkorn-${builtins.replaceStrings ["."] ["-"] version}.zip";
|
2021-03-21 04:09:22 +01:00
|
|
|
sha256 = "0srff2nqs7353mqcpmvaq156lamfh621py4h1771n0l9ix2c8mss";
|
|
|
|
stripRoot = false;
|
|
|
|
|
2022-09-29 09:52:55 +02:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://vollkorn-typeface.com/";
|
|
|
|
description = "The free and healthy typeface for bread and butter use";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.schmittlauch ];
|
|
|
|
};
|
|
|
|
}).overrideAttrs (_: {
|
2021-03-21 04:09:22 +01:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -pv $out/share/{doc/${pname}-${version},fonts/{opentype,truetype,WOFF,WOFF2}}
|
|
|
|
unzip $downloadedFile
|
|
|
|
cp -v {Fontlog,OFL-FAQ,OFL}.txt $out/share/doc/${pname}-${version}/
|
|
|
|
cp -v PS-OTF/*.otf $out/share/fonts/opentype
|
|
|
|
cp -v TTF/*.ttf $out/share/fonts/truetype
|
|
|
|
cp -v WOFF/*.woff $out/share/fonts/WOFF
|
|
|
|
cp -v WOFF2/*.woff2 $out/share/fonts/WOFF2
|
|
|
|
'';
|
2022-09-29 09:52:55 +02:00
|
|
|
})
|