diff --git a/pkgs/curie-font/default.nix b/pkgs/curie-font/default.nix new file mode 100644 index 0000000..11199bf --- /dev/null +++ b/pkgs/curie-font/default.nix @@ -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; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index c86ce5d..db7ed54 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -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;