2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
2021-03-20 04:20:00 +00:00
|
|
|
pname = "vollkorn";
|
|
|
|
version = "4.105";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "http://vollkorn-typeface.com/download/vollkorn-${builtins.replaceStrings ["."] ["-"] version}.zip";
|
|
|
|
stripRoot = false;
|
|
|
|
hash = "sha256-oG79GgCwCavbMFAPakza08IPmt13Gwujrkc/NKTai7g=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
mkdir -pv $out/share/{doc/${pname}-${version},fonts/{opentype,truetype,WOFF,WOFF2}}
|
|
|
|
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
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2021-03-20 04:20:00 +00:00
|
|
|
'';
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://vollkorn-typeface.com/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Free and healthy typeface for bread and butter use";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.schmittlauch ];
|
|
|
|
};
|
|
|
|
}
|