2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchgit }:
|
2016-11-20 19:11:52 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
let
|
2017-05-17 06:20:16 +02:00
|
|
|
version = "2017-03-30";
|
2019-05-13 03:55:32 +02:00
|
|
|
in (fetchgit {
|
|
|
|
name = "go-font-${version}";
|
|
|
|
url = "https://go.googlesource.com/image";
|
|
|
|
rev = "f03a046406d4d7fbfd4ed29f554da8f6114049fc";
|
2016-11-20 19:11:52 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
postFetch = ''
|
|
|
|
mv $out/* .
|
2016-11-20 19:11:52 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
sha256 = "1488426ya2nzmwjas947fx9h5wzxrp9wasn8nkjqf0y0mpd4f1xz";
|
|
|
|
}) // {
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://blog.golang.org/go-fonts";
|
2016-11-20 19:11:52 +01:00
|
|
|
description = "The Go font family";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
2021-01-15 08:29:18 +01:00
|
|
|
platforms = lib.platforms.all;
|
2016-11-20 19:11:52 +01:00
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|