mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
33 lines
936 B
Nix
33 lines
936 B
Nix
{ stdenv, fetchgit }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "go-font-${version}";
|
|
version = "2017-03-30";
|
|
|
|
src = fetchgit {
|
|
url = "https://go.googlesource.com/image";
|
|
rev = "f03a046406d4d7fbfd4ed29f554da8f6114049fc";
|
|
sha256 = "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d";
|
|
};
|
|
|
|
installPhase = ''
|
|
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
|
|
'';
|
|
|
|
outputHashAlgo = "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = "10hfm2cpxlx1ng7r2mbvykjhmy131qlgzpdzj7ibg9kr293bcjc0";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://blog.golang.org/go-fonts;
|
|
description = "The Go font family";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ sternenseemann ];
|
|
platforms = stdenv.lib.platforms.all;
|
|
hydraPlatforms = [];
|
|
};
|
|
}
|