From fac13d8af5ac40dcbe98a4984b6e68513dd59d7c Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 6 May 2019 23:05:01 -0500 Subject: [PATCH] public-sans: init at 1.002 --- pkgs/data/fonts/public-sans/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/data/fonts/public-sans/default.nix diff --git a/pkgs/data/fonts/public-sans/default.nix b/pkgs/data/fonts/public-sans/default.nix new file mode 100644 index 000000000000..663741723dc0 --- /dev/null +++ b/pkgs/data/fonts/public-sans/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchzip }: + +let + version = "1.002"; +in fetchzip rec { + 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/ + ''; + + sha256 = "1j792i6350sp63l04jww5rpnsfz9zkj97rd378yxnpnwf2a8nv4k"; + + meta = with stdenv.lib; { + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 821ea264dfaf..c8aa1e6a87a4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16286,6 +16286,8 @@ in proggyfonts = callPackage ../data/fonts/proggyfonts { }; + public-sans = callPackage ../data/fonts/public-sans { }; + qogir-theme = callPackage ../data/themes/qogir { }; route159 = callPackage ../data/fonts/route159 { };