2016-12-15 20:19:39 +00:00
|
|
|
{stdenv, fetchurl, perl, bdftopcf, perlPackages, fontforge, SDL, SDL_image}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "unscii";
|
|
|
|
version = "1.1";
|
|
|
|
# or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://pelulamu.net/${pname}/${pname}-${version}-src.tar.gz";
|
2016-12-15 20:19:39 +00:00
|
|
|
sha256 = "0qcxcnqz2nlwfzlrn115kkp3n8dd7593h762vxs6vfqm13i39lq1";
|
|
|
|
};
|
2019-05-13 04:54:44 +01:00
|
|
|
nativeBuildInputs = [perl bdftopcf perlPackages.TextCharWidth fontforge
|
2016-12-15 20:19:39 +00:00
|
|
|
SDL SDL_image];
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
2019-05-13 04:54:44 +01:00
|
|
|
install -m444 -Dt $out/share/fonts *.hex *.pcf
|
|
|
|
install -m444 -Dt $out/share/fonts/truetype *.ttf
|
|
|
|
install -m444 -Dt $out/share/fonts/opentype *.otf
|
|
|
|
install -m444 -Dt $out/share/fonts/svg *.svg
|
|
|
|
install -m444 -Dt $out/share/fonts/web *.woff
|
2016-12-15 20:19:39 +00:00
|
|
|
'';
|
2017-08-12 15:22:45 +01:00
|
|
|
|
2016-12-15 20:19:39 +00: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];
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://pelulamu.net/unscii/;
|
2016-12-15 20:19:39 +00:00
|
|
|
};
|
|
|
|
}
|