nixpkgs/pkgs/data/fonts/go-font/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
902 B
Nix
Raw Normal View History

{ lib, stdenvNoCC, fetchzip }:
2016-11-20 19:11:52 +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
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
mv *.ttf $out/share/fonts/truetype
mv README $out/share/doc/go-font/LICENSE
runHook postInstall
2016-11-20 19:11:52 +01:00
'';
meta = with lib; {
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
};
}