Adding scientifica 1.0

This commit is contained in:
eeva 2018-04-20 21:26:44 +03:00
parent 0f175c9ccc
commit b8aa03f35b
2 changed files with 44 additions and 0 deletions

View file

@ -19,6 +19,9 @@ self: super:
# Bug fixes: # Bug fixes:
kitty07 = super.callPackage ./kitty {}; kitty07 = super.callPackage ./kitty {};
scientifica-font = super.callPackage ./scientifca-font {};
ripmime = super.ripmime.override { ripmime = super.ripmime.override {
stdenv = super.overrideCC super.stdenv super.gcc6; stdenv = super.overrideCC super.stdenv super.gcc6;
}; };

View file

@ -0,0 +1,41 @@
{stdenv, fetchgit, bdftopcf, mkfontdir, mkfontscale}:
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
'';
meta = with stdenv.lib; {
description = " Tall, condensed, bitmap font for geeks";
homepage = https://github.com/NerdyPepper/scientifica;
license = lib.licences.ofl;
maintainers = [ maintainers.jpotir ];
platforms = platforms.unix;
};
}