Merge pull request #80220 from rnhmjoj/siji
siji: split output into out, bdf, otb
This commit is contained in:
commit
06d625a7fe
@ -1,26 +1,44 @@
|
|||||||
{ lib, fetchzip }:
|
{ stdenv, fetchzip, libfaketime, fonttosfnt, mkfontscale }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
date = "2016-05-13";
|
name = "siji-${version}";
|
||||||
in fetchzip {
|
version = "2016-05-13";
|
||||||
name = "siji-${date}";
|
|
||||||
|
|
||||||
url = https://github.com/stark/siji/archive/95369afac3e661cb6d3329ade5219992c88688c1.zip;
|
src = fetchzip {
|
||||||
|
url = https://github.com/stark/siji/archive/95369afac3e661cb6d3329ade5219992c88688c1.zip;
|
||||||
|
sha256 = "1408g4nxwdd682vjqpmgv0cp0bfnzzzwls62cjs9zrds16xa9dpf";
|
||||||
|
};
|
||||||
|
|
||||||
postFetch = ''
|
nativeBuildInputs = [ libfaketime fonttosfnt mkfontscale ];
|
||||||
unzip -j $downloadedFile
|
|
||||||
|
|
||||||
install -D *.pcf -t $out/share/fonts/pcf
|
buildPhase = ''
|
||||||
install -D *.bdf -t $out/share/fonts/bdf
|
# compress pcf fonts
|
||||||
|
gzip -n -9 pcf/*
|
||||||
|
|
||||||
|
# convert bdf fonts to otb
|
||||||
|
for i in bdf/*; do
|
||||||
|
name=$(basename $i .bdf)
|
||||||
|
faketime -f "1970-01-01 00:00:01" \
|
||||||
|
fonttosfnt -v -o "$name.otb" "$i"
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
sha256 = "1ymcbirdbkqaf0xs2y00l0wachb4yxh1fgqm5avqwvccs0lsfj1d";
|
postInstall = ''
|
||||||
|
install -m 644 -D pcf/* -t "$out/share/fonts/misc"
|
||||||
|
install -m 644 -D bdf/* -t "$bdf/share/fonts/misc"
|
||||||
|
install -m 644 -D *.otb -t "$otb/share/fonts/misc"
|
||||||
|
mkfontdir "$out/share/fonts/misc"
|
||||||
|
mkfontdir "$bdf/share/fonts/misc"
|
||||||
|
mkfontdir "$otb/share/fonts/misc"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
outputs = [ "out" "bdf" "otb" ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/stark/siji;
|
homepage = https://github.com/stark/siji;
|
||||||
description = "An iconic bitmap font based on Stlarch with additional glyphs";
|
description = "An iconic bitmap font based on Stlarch with additional glyphs";
|
||||||
license = lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = lib.platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = [ lib.maintainers.asymmetric ];
|
maintainers = [ maintainers.asymmetric ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -17934,7 +17934,8 @@ in
|
|||||||
inter-ui = callPackage ../data/fonts/inter-ui { };
|
inter-ui = callPackage ../data/fonts/inter-ui { };
|
||||||
inter = callPackage ../data/fonts/inter { };
|
inter = callPackage ../data/fonts/inter { };
|
||||||
|
|
||||||
siji = callPackage ../data/fonts/siji { };
|
siji = callPackage ../data/fonts/siji
|
||||||
|
{ inherit (buildPackages.xorg) mkfontscale fonttosfnt; };
|
||||||
|
|
||||||
sound-theme-freedesktop = callPackage ../data/misc/sound-theme-freedesktop { };
|
sound-theme-freedesktop = callPackage ../data/misc/sound-theme-freedesktop { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user