2023-01-20 10:41:00 +00:00
|
|
|
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
|
2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "2.0";
|
|
|
|
name = "quattrocento-sans-${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
in (fetchzip rec {
|
|
|
|
inherit name;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
url = "https://web.archive.org/web/20170709124317/http://www.impallari.com/media/releases/quattrocento-sans-v${version}.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
sha256 = "0g8hnn92ks4y0jbizwj7yfa097lk887wqkqpqjdmc09sd2n44343";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://www.impallari.com/quattrocentosans/";
|
|
|
|
description = "A classic, elegant and sober sans-serif typeface";
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [maintainers.rycee];
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
}).overrideAttrs (_: {
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/{fonts,doc}
|
|
|
|
unzip -j $downloadedFile '*/QuattrocentoSans*.otf' -d $out/share/fonts/opentype
|
|
|
|
unzip -j $downloadedFile '*/FONTLOG.txt' -d $out/share/doc/${name}
|
|
|
|
'';
|
|
|
|
})
|