diff options
Diffstat (limited to 'pkgs/data/fonts/gohufont/default.nix')
-rw-r--r-- | pkgs/data/fonts/gohufont/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/data/fonts/gohufont/default.nix b/pkgs/data/fonts/gohufont/default.nix new file mode 100644 index 000000000000..450971524e61 --- /dev/null +++ b/pkgs/data/fonts/gohufont/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchurl, mkfontdir, mkfontscale }: + +stdenv.mkDerivation rec { + name = "gohufont-2.0"; + + src = fetchurl { + url = "http://font.gohu.org/gohufont-2.0.tar.gz"; + sha256 = "0vi87fvj3m52piz2k6vqday03cah6zvz3dzrvjch3qjna1i1nb7s"; + }; + + buildInputs = [ mkfontdir mkfontscale ]; + + installPhase = '' + fontDir="$out/share/fonts/misc" + mkdir -p "$fontDir" + mv *.pcf.gz "$fontDir" + cd "$fontDir" + mkfontdir + mkfontscale + ''; + + meta = with stdenv.lib; { + description = "A monospace bitmap font well suited for programming and terminal use"; + homepage = http://font.gohu.org/; + license = licenses.wtfpl; + maintainers = with maintainers; [ epitrochoid ]; + platforms = with platforms; linux; + }; +} |