0dc563881a
See https://lists.gnu.org/archive/html/info-gnu/2018-06/msg00003.html for release information
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ stdenv, fetchurl, mkfontscale, mkfontdir }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "unifont-${version}";
|
|
version = "11.0.01";
|
|
|
|
ttf = fetchurl {
|
|
url = "mirror://gnu/unifont/${name}/${name}.ttf";
|
|
sha256 = "03nnfnh4j60a4hy0d4hqpnvhlfx437hp4g1wjfjy91vzrcbmvkwi";
|
|
};
|
|
|
|
pcf = fetchurl {
|
|
url = "mirror://gnu/unifont/${name}/${name}.pcf.gz";
|
|
sha256 = "03bqqz2ipy3afhwsfy30c2v97cc27grw11lc0vzcvrgvin9ys2v1";
|
|
};
|
|
|
|
nativeBuildInputs = [ 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
|
|
'';
|
|
|
|
outputHashAlgo = "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = "1ncllq42x1mlblf6h44garc3b5hkxv9dkpgbaipzll22p1l29yrf";
|
|
|
|
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;
|
|
};
|
|
}
|