2021-03-03 12:59:53 +01:00
|
|
|
{stdenv, lib, fetchgit, bdftopcf, mkfontdir, mkfontscale}:
|
2018-06-24 18:19:07 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "curie-1.0";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/NerdyPepper/curie";
|
|
|
|
rev = "9edac64b06a544a4607f692672d64edf61158184";
|
2018-06-24 18:22:04 +02:00
|
|
|
sha256 = "06wqwjdclp5rj8z7cig5n71bisn3ws4b2cxq1h7rzrwbkmz9sswr";
|
2018-06-24 18:19:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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-06-24 18:19:07 +02:00
|
|
|
description = "A slightly upscaled version of scientifica";
|
|
|
|
homepage = https://github.com/NerdyPepper/curie;
|
|
|
|
license = lib.licences.ofl;
|
|
|
|
maintainers = [ maintainers.jpotier ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|