mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
Add fonts from the DOSEmu project.
These are mainly fonts like the DOS standard VGA fonts.
This commit is contained in:
parent
0881877021
commit
c1c74e45c5
34
pkgs/data/fonts/dosemu-fonts/default.nix
Normal file
34
pkgs/data/fonts/dosemu-fonts/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{stdenv, fetchurl, bdftopcf, mkfontdir, mkfontscale}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "dosemu-fonts";
|
||||
|
||||
src = fetchurl {
|
||||
url = mirror://sourceforge/dosemu/dosemu-1.4.0.tgz;
|
||||
sha256 = "0l1zwmw42mpakjrzmbygshcg2qzq9mv8lx42738rz3j9hrqzg4pw";
|
||||
};
|
||||
|
||||
configurePhase = "true";
|
||||
buildPhase = "true";
|
||||
|
||||
buildInputs = [bdftopcf mkfontdir mkfontscale];
|
||||
|
||||
installPhase = ''
|
||||
fontPath="$out/share/fonts/X11/misc/dosemu"
|
||||
mkdir -p "$fontPath"
|
||||
for i in etc/*.bdf; do
|
||||
fontOut="$out/share/fonts/X11/misc/dosemu/$(basename "$i" .bdf).pcf.gz"
|
||||
echo -n "Installing font $fontOut..." >&2
|
||||
bdftopcf $i | gzip -c -9 > "$fontOut"
|
||||
echo " done." >&2
|
||||
done
|
||||
cp etc/dosemu.alias "$fontPath/fonts.alias"
|
||||
cd "$fontPath"
|
||||
mkfontdir
|
||||
mkfontscale
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Various fonts from the DOSEmu project";
|
||||
};
|
||||
}
|
|
@ -6131,6 +6131,8 @@ let
|
|||
|
||||
docbook_xsl_ns = callPackage ../data/sgml+xml/stylesheets/xslt/docbook-xsl-ns { };
|
||||
|
||||
dosemu_fonts = callPackage ../data/fonts/dosemu-fonts { };
|
||||
|
||||
freefont_ttf = callPackage ../data/fonts/freefont-ttf { };
|
||||
|
||||
gentium = callPackage ../data/fonts/gentium {};
|
||||
|
|
Loading…
Reference in a new issue