push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,91 @@
{
lib,
stdenv,
fetchurl,
perl,
bdftopcf,
fontforge,
SDL,
SDL_image,
mkfontscale,
}:
let
perlenv = perl.withPackages (
p: with p; [
TextCharWidth
]
);
in
stdenv.mkDerivation rec {
pname = "unscii";
version = "2.1";
src = fetchurl {
url = "http://viznut.fi/${pname}/${pname}-${version}-src.tar.gz";
sha256 = "0msvqrq7x36p76a2n5bzkadh95z954ayqa08wxd017g4jpa1a4jd";
};
nativeBuildInputs = [
perlenv
bdftopcf
fontforge
SDL
SDL_image
mkfontscale
];
# Fixes shebang -> wrapper problem on Darwin
postPatch = ''
for perltool in *.pl; do
substituteInPlace Makefile \
--replace "./$perltool" "${perlenv}/bin/perl ./$perltool"
done
'';
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
];
preConfigure = ''
patchShebangs .
'';
postBuild = ''
# compress pcf fonts
gzip -9 -n *.pcf
'';
installPhase = ''
# install fonts for use in X11 and GTK applications
install -m444 -Dt "$out/share/fonts/misc" *.pcf.gz
install -m444 -Dt "$out/share/fonts/opentype" *.otf
mkfontdir "$out/share/fonts/misc"
mkfontscale "$out/share/fonts/opentype"
# install other formats in $extra
install -m444 -Dt "$extra/share/fonts/truetype" *.ttf
install -m444 -Dt "$extra/share/fonts/svg" *.svg
install -m444 -Dt "$extra/share/fonts/web" *.woff
install -m444 -Dt "$extra/share/fonts/misc" *.hex
mkfontscale "$extra"/share/fonts/*
'';
outputs = [
"out"
"extra"
];
meta = {
description = "Bitmapped character-art-friendly Unicode fonts";
# Basically GPL2+ with font exception — because of the Unifont-augmented
# version. The reduced version is public domain.
license = with lib.licenses; [
gpl2Plus
fontException
ofl
];
maintainers = [ lib.maintainers.raskin ];
homepage = "http://viznut.fi/unscii/";
};
}