2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchzip }:
|
2019-05-07 05:05:01 +01:00
|
|
|
|
|
|
|
let
|
2019-09-26 15:21:26 +01:00
|
|
|
version = "1.006";
|
2019-08-13 22:52:01 +01:00
|
|
|
in fetchzip {
|
2019-05-07 05:05:01 +01:00
|
|
|
name = "public-sans-${version}";
|
|
|
|
|
|
|
|
url = "https://github.com/uswds/public-sans/releases/download/v${version}/public-sans-v${version}.zip";
|
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share
|
|
|
|
unzip $downloadedFile fonts/{otf,variable}/\*.\[ot\]tf -d $out/share/
|
|
|
|
'';
|
|
|
|
|
2019-09-26 15:21:26 +01:00
|
|
|
sha256 = "1x04mpynfhcgiwx68w5sawgn69xld7k65mbq7n5vcgbfzh2sjwhq";
|
2019-05-07 05:05:01 +01:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2019-05-07 05:05:01 +01:00
|
|
|
description = "A strong, neutral, principles-driven, open source typeface for text or display";
|
|
|
|
homepage = https://public-sans.digital.gov/;
|
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|