Curie font
This commit is contained in:
parent
a9b68402bb
commit
1e829df340
2 changed files with 42 additions and 0 deletions
41
pkgs/curie-font/default.nix
Normal file
41
pkgs/curie-font/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -21,6 +21,7 @@ self: super:
|
|||
kitty07 = super.callPackage ./kitty {};
|
||||
|
||||
scientifica-font = super.callPackage ./scientifica-font {};
|
||||
curie-font = super.callPackage ./curie-font {};
|
||||
|
||||
ripmime = super.ripmime.override {
|
||||
stdenv = super.overrideCC super.stdenv super.gcc6;
|
||||
|
|
Loading…
Reference in a new issue