2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchgit }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "2017-03-30";
|
|
|
|
in (fetchgit {
|
|
|
|
name = "go-font-${version}";
|
|
|
|
url = "https://go.googlesource.com/image";
|
|
|
|
rev = "f03a046406d4d7fbfd4ed29f554da8f6114049fc";
|
|
|
|
|
|
|
|
postFetch = ''
|
|
|
|
mv $out/* .
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
mkdir -p $out/share/doc/go-font
|
|
|
|
cp font/gofont/ttfs/* $out/share/fonts/truetype
|
|
|
|
mv $out/share/fonts/truetype/README $out/share/doc/go-font/LICENSE
|
|
|
|
'';
|
|
|
|
|
|
|
|
sha256 = "1488426ya2nzmwjas947fx9h5wzxrp9wasn8nkjqf0y0mpd4f1xz";
|
|
|
|
}) // {
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://blog.golang.org/go-fonts";
|
|
|
|
description = "The Go font family";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|