2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchgit }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "2.010";
|
2020-04-24 23:36:52 +00:00
|
|
|
in (fetchgit {
|
|
|
|
name = "go-font-${version}";
|
|
|
|
url = "https://go.googlesource.com/image";
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "41969df76e82aeec85fa3821b1e24955ea993001";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "dteUL/4ZUq3ybL6HaLYqu2Tslx3q8VvELIY3tVC+ODo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
}) // {
|
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";
|
2022-10-30 15:09:59 +00:00
|
|
|
changelog = "https://go.googlesource.com/image/+log/refs/heads/master/font/gofont";
|
2020-04-24 23:36:52 +00:00
|
|
|
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 = [];
|
|
|
|
};
|
|
|
|
}
|