2019-05-13 01:55:32 +00:00
|
|
|
{ lib, fetchzip }:
|
2019-05-07 04:05:01 +00:00
|
|
|
|
|
|
|
let
|
2020-01-08 20:34:19 +00:00
|
|
|
version = "1.008";
|
2019-08-13 21:52:01 +00:00
|
|
|
in fetchzip {
|
2019-05-07 04:05:01 +00: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 09:20:00 +00:00
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile binaries/otf/\*.otf -d $out/share/fonts/opentype
|
|
|
|
unzip -j $downloadedFile binaries/variable/\*.ttf -d $out/share/fonts/truetype
|
|
|
|
unzip -j $downloadedFile binaries/webfonts/\*.ttf -d $out/share/fonts/truetype
|
|
|
|
unzip -j $downloadedFile binaries/webfonts/\*.woff -d $out/share/fonts/woff
|
|
|
|
unzip -j $downloadedFile binaries/webfonts/\*.woff2 -d $out/share/fonts/woff2
|
2019-05-07 04:05:01 +00:00
|
|
|
'';
|
|
|
|
|
2020-01-08 20:34:19 +00:00
|
|
|
sha256 = "1s4xmliri3r1gcn1ws3wa6davj6giliqjdbcv0bh9ryg3dfpjz74";
|
2019-05-07 04:05:01 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
meta = with lib; {
|
2019-05-07 04:05:01 +00:00
|
|
|
description = "A strong, neutral, principles-driven, open source typeface for text or display";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://public-sans.digital.gov/";
|
2019-05-07 04:05:01 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|