2016-12-15 21:19:39 +01:00
|
|
|
{stdenv, fetchurl, perl, bdftopcf, perlPackages, fontforge, SDL, SDL_image}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "unscii";
|
|
|
|
version = "1.1";
|
|
|
|
# or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pelulamu.net/${pname}/${name}-src.tar.gz";
|
|
|
|
sha256 = "0qcxcnqz2nlwfzlrn115kkp3n8dd7593h762vxs6vfqm13i39lq1";
|
|
|
|
};
|
|
|
|
nativeBuildInputs = [perl bdftopcf perlPackages.TextCharWidth fontforge
|
|
|
|
SDL SDL_image];
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/share/fonts"/{truetype,opentype,web,svg}
|
|
|
|
cp *.hex "$out/share/fonts/"
|
|
|
|
cp *.pcf "$out/share/fonts/"
|
|
|
|
cp *.ttf "$out/share/fonts/truetype"
|
|
|
|
cp *.otf "$out/share/fonts/opentype"
|
|
|
|
cp *.svg "$out/share/fonts/svg"
|
|
|
|
cp *.woff "$out/share/fonts/web"
|
|
|
|
'';
|
2017-08-12 16:22:45 +02:00
|
|
|
|
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHash = "03zvczdka665zcyf9fjrnx434mwpr5q8396j34kjmc67w7nhc49r";
|
|
|
|
|
2016-12-15 21:19:39 +01:00
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = ''Bitmapped character-art-friendly Unicode fonts'';
|
|
|
|
# Basically GPL2+ with font exception — because of the Unifont-augmented
|
|
|
|
# version. The reduced version is public domain.
|
|
|
|
license = http://unifoundry.com/LICENSE.txt;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://pelulamu.net/unscii/;
|
2016-12-15 21:19:39 +01:00
|
|
|
};
|
|
|
|
}
|