Curie font

This commit is contained in:
eeva 2018-06-24 19:19:07 +03:00
parent a9b68402bb
commit 1e829df340
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{stdenv, fetchgit, bdftopcf, mkfontdir, mkfontscale}:
stdenv.mkDerivation rec {
name = "curie-1.0";
src = fetchgit {
url = "https://github.com/NerdyPepper/curie";
rev = "9edac64b06a544a4607f692672d64edf61158184";
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
'';
meta = with stdenv.lib; {
description = "A slightly upscaled version of scientifica";
homepage = https://github.com/NerdyPepper/curie;
license = lib.licences.ofl;
maintainers = [ maintainers.jpotier ];
platforms = platforms.unix;
};
}

View file

@ -21,6 +21,7 @@ self: super:
kitty07 = super.callPackage ./kitty {}; kitty07 = super.callPackage ./kitty {};
scientifica-font = super.callPackage ./scientifica-font {}; scientifica-font = super.callPackage ./scientifica-font {};
curie-font = super.callPackage ./curie-font {};
ripmime = super.ripmime.override { ripmime = super.ripmime.override {
stdenv = super.overrideCC super.stdenv super.gcc6; stdenv = super.overrideCC super.stdenv super.gcc6;