tewi-font: 2015-06-07 -> 2.0.2
This commit is contained in:
parent
27006fcb4d
commit
37d9b45b04
@ -1,38 +1,35 @@
|
|||||||
{stdenv, fetchgit, bdftopcf, mkfontdir, mkfontscale}:
|
{ stdenv, fetchFromGitHub, python3, bdftopcf, mkfontscale }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
date = "2015-06-07";
|
pname = "tewi-font";
|
||||||
name = "tewi-font-${date}";
|
version = "2.0.2";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/lucy/tewi-font";
|
owner = "lucy";
|
||||||
rev = "ff930e66ae471da4fdc226ffe65fd1ccd13d4a69";
|
repo = pname;
|
||||||
sha256 = "0c7k847cp68w20frzsdknpss2cwv3lp970asyybv65jxyl2jz3iq";
|
rev = version;
|
||||||
|
sha256 = "1axv9bv10xlcmgfyjh3z5kn5fkg3m6n1kskcs5hvlmyb6m1zk91j";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ bdftopcf mkfontdir mkfontscale ];
|
nativeBuildInputs = [ python3 bdftopcf mkfontscale ];
|
||||||
buildPhase = ''
|
|
||||||
for i in *.bdf; do
|
|
||||||
bdftopcf -o ''${i/bdf/pcf} $i
|
|
||||||
done
|
|
||||||
|
|
||||||
gzip -n *.pcf
|
postPatch = ''
|
||||||
|
# do not update fontconfig cache
|
||||||
|
sed '32,33d' -i Makefile
|
||||||
|
|
||||||
|
# make gzip deterministic
|
||||||
|
sed 's/gzip -9/gzip -9 -n/g' -i Makefile
|
||||||
|
|
||||||
|
# fix python not found
|
||||||
|
patchShebangs scripts/merge
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
fontDir="$out/share/fonts/misc"
|
fontDir="$out/share/fonts/misc"
|
||||||
mkdir -p "$fontDir"
|
install -m 644 -D out/* -t "$fontDir"
|
||||||
mv *.pcf.gz "$fontDir"
|
mkfontdir "$fontDir"
|
||||||
|
|
||||||
cd "$fontDir"
|
|
||||||
mkfontdir
|
|
||||||
mkfontscale
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputHashAlgo = "sha256";
|
|
||||||
outputHashMode = "recursive";
|
|
||||||
outputHash = "14dv3m1svahjyb9c1x1570qrmlnynzg0g36b10bqqs8xvhix34yq";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A nice bitmap font, readable even at small sizes";
|
description = "A nice bitmap font, readable even at small sizes";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user