2019-05-12 21:55:32 -04:00
|
|
|
{ lib, fetchzip }:
|
2019-05-07 00:05:01 -04:00
|
|
|
|
|
|
|
let
|
2021-11-01 00:20:00 -04:00
|
|
|
version = "2.000";
|
2019-08-13 17:52:01 -04:00
|
|
|
in fetchzip {
|
2019-05-07 00:05:01 -04:00
|
|
|
name = "public-sans-${version}";
|
|
|
|
|
|
|
|
url = "https://github.com/uswds/public-sans/releases/download/v${version}/public-sans-v${version}.zip";
|
|
|
|
|
|
|
|
postFetch = ''
|
2019-11-17 04:20:00 -05:00
|
|
|
mkdir -p $out/share/fonts
|
2021-11-01 00:20:00 -04:00
|
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
2019-05-07 00:05:01 -04:00
|
|
|
'';
|
|
|
|
|
2021-11-01 00:20:00 -04:00
|
|
|
sha256 = "0r34h9mim5c3h48cpq2m2ixkdqhv3i594pip10pavkmskldpbha5";
|
2019-05-07 00:05:01 -04:00
|
|
|
|
2019-05-12 21:55:32 -04:00
|
|
|
meta = with lib; {
|
2019-05-07 00:05:01 -04:00
|
|
|
description = "A strong, neutral, principles-driven, open source typeface for text or display";
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://public-sans.digital.gov/";
|
2019-05-07 00:05:01 -04:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|