2021-03-03 12:59:53 +01:00
|
|
|
{stdenv, lib, fetchgit, bdftopcf, mkfontdir, mkfontscale}:
|
2018-04-20 20:26:44 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "scientifica-1.0";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/NerdyPepper/scientifica";
|
|
|
|
rev = "e197c4757bda669268cbd61a315e6a463a9b28d8";
|
|
|
|
sha256 = "0fhf27z50v8s3g84vbdy4ys2ka1ag6wzipbgcmimm56kzvr4i493";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bdftopcf mkfontdir mkfontscale ];
|
|
|
|
buildPhase = ''
|
|
|
|
mv regular/*bdf .
|
|
|
|
mv bold/*bdf .
|
|
|
|
|
|
|
|
for i in *.bdf; do
|
|
|
|
bdftopcf -o ''${i/bdf/pcf} $i
|
|
|
|
done
|
|
|
|
|
|
|
|
gzip -n *.pcf
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
fontDir="$out/share/fonts/misc"
|
|
|
|
mkdir -p "$fontDir"
|
|
|
|
mv *.pcf.gz "$fontDir"
|
|
|
|
|
|
|
|
cd "$fontDir"
|
|
|
|
mkfontdir
|
|
|
|
mkfontscale
|
|
|
|
'';
|
|
|
|
|
2021-03-03 12:59:53 +01:00
|
|
|
meta = with lib; {
|
2018-04-20 20:33:53 +02:00
|
|
|
description = "Tall, condensed, bitmap font for geeks";
|
2018-04-20 20:26:44 +02:00
|
|
|
homepage = https://github.com/NerdyPepper/scientifica;
|
2019-11-15 16:53:52 +01:00
|
|
|
license = licences.ofl;
|
2018-04-20 20:33:53 +02:00
|
|
|
maintainers = [ maintainers.jpotier ];
|
2018-04-20 20:26:44 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|