2023-01-18 21:29:32 +01:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2016-11-20 19:11:52 +01:00
|
|
|
|
2023-01-18 21:29:32 +01:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "go-font";
|
2022-10-19 07:43:26 +02:00
|
|
|
version = "2.010";
|
2016-11-20 19:11:52 +01:00
|
|
|
|
2023-01-18 21:29:32 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://go.googlesource.com/image/+archive/41969df76e82aeec85fa3821b1e24955ea993001/font/gofont/ttfs.tar.gz";
|
|
|
|
stripRoot = false;
|
|
|
|
hash = "sha256-rdzt51wY4b7HEr7W/0Ar/FB0zMyf+nKLsOT+CRSEP3o=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2016-11-20 19:11:52 +01:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
mkdir -p $out/share/doc/go-font
|
2023-01-18 21:29:32 +01:00
|
|
|
mv *.ttf $out/share/fonts/truetype
|
|
|
|
mv README $out/share/doc/go-font/LICENSE
|
|
|
|
|
|
|
|
runHook postInstall
|
2016-11-20 19:11:52 +01:00
|
|
|
'';
|
|
|
|
|
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";
|
2022-10-19 07:43:26 +02:00
|
|
|
changelog = "https://go.googlesource.com/image/+log/refs/heads/master/font/gofont";
|
2016-11-20 19:11:52 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|