2021-01-25 11:26:54 +03:00
|
|
|
{ lib, fetchgit }:
|
2016-11-20 21:11:52 +03:00
|
|
|
|
2019-05-13 04:55:32 +03:00
|
|
|
let
|
2022-10-19 08:43:26 +03:00
|
|
|
version = "2.010";
|
2019-05-13 04:55:32 +03:00
|
|
|
in (fetchgit {
|
|
|
|
name = "go-font-${version}";
|
|
|
|
url = "https://go.googlesource.com/image";
|
2022-10-19 08:43:26 +03:00
|
|
|
rev = "41969df76e82aeec85fa3821b1e24955ea993001";
|
2016-11-20 21:11:52 +03:00
|
|
|
|
2019-05-13 04:55:32 +03:00
|
|
|
postFetch = ''
|
2022-10-27 13:45:33 +03:00
|
|
|
mv $out source
|
|
|
|
cd source
|
|
|
|
|
2016-11-20 21:11:52 +03: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
|
|
|
|
'';
|
|
|
|
|
2022-10-27 13:45:33 +03:00
|
|
|
sha256 = "175jwq16qjnd2k923n9gcbjizchy7yv4n41dm691sjwrhbl0b13x";
|
2019-05-13 04:55:32 +03:00
|
|
|
}) // {
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://blog.golang.org/go-fonts";
|
2016-11-20 21:11:52 +03:00
|
|
|
description = "The Go font family";
|
2022-10-19 08:43:26 +03:00
|
|
|
changelog = "https://go.googlesource.com/image/+log/refs/heads/master/font/gofont";
|
2016-11-20 21:11:52 +03:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ sternenseemann ];
|
2021-01-15 10:29:18 +03:00
|
|
|
platforms = lib.platforms.all;
|
2016-11-20 21:11:52 +03:00
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|