mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
bc4a671980
See https://lists.gnu.org/archive/html/info-gnu/2016-12/msg00014.html for release information
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ stdenv, fetchurl, mkfontscale, mkfontdir }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "unifont-${version}";
|
|
version = "9.0.06";
|
|
|
|
ttf = fetchurl {
|
|
url = "mirror://gnu/unifont/${name}/${name}.ttf";
|
|
sha256 = "0r96giih04din07wlmw8538izwr7dh5v6dyriq13zfn19brgn5z2";
|
|
};
|
|
|
|
pcf = fetchurl {
|
|
url = "mirror://gnu/unifont/${name}/${name}.pcf.gz";
|
|
sha256 = "11ivfzpyz54rbz0cvd437abs6qlv28q0qp37kn27jggxlcpfh8vd";
|
|
};
|
|
|
|
buildInputs = [ mkfontscale mkfontdir ];
|
|
|
|
phases = "installPhase";
|
|
|
|
installPhase =
|
|
''
|
|
mkdir -p $out/share/fonts $out/share/fonts/truetype
|
|
cp -v ${pcf} $out/share/fonts/unifont.pcf.gz
|
|
cp -v ${ttf} $out/share/fonts/truetype/unifont.ttf
|
|
cd $out/share/fonts
|
|
mkfontdir
|
|
mkfontscale
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Unicode font for Base Multilingual Plane";
|
|
homepage = http://unifoundry.com/unifont.html;
|
|
|
|
# Basically GPL2+ with font exception.
|
|
license = http://unifoundry.com/LICENSE.txt;
|
|
maintainers = [ maintainers.rycee maintainers.vrthra ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|