rictydiminished-with-firacode: 0.0.1 → 1.2.0
Update, clean up and also fix build. Part of the build system still does not support Python 2: https://github.com/hakatashi/RictyDiminished-with-FiraCode/pull/3
This commit is contained in:
parent
ee4cc7c390
commit
5f6635144a
@ -1,32 +1,40 @@
|
|||||||
{ stdenv, fetchgit, fontforge, python3 }:
|
{ stdenv, fetchgit, fontforge, python2, python3 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "rictydiminished-with-firacode";
|
pname = "rictydiminished-with-firacode";
|
||||||
version = "0.0.1";
|
version = "1.2.0";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/hakatashi/RictyDiminished-with-FiraCode.git";
|
url = "https://github.com/hakatashi/RictyDiminished-with-FiraCode.git";
|
||||||
rev = "refs/tags/${version}";
|
rev = version;
|
||||||
sha256 = "12lhb0k4d8p4lzw9k6hlsxpfpc15zfshz1h5cbaa88sb8n5jh360";
|
sha256 = "1vlzx5dsx6j9d9q84pdnwcxjy7mr1sv8sacx0zgfxhxnj66n1gnn";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildPhase = ''
|
postPatch = ''
|
||||||
|
# Make builds more reproducible
|
||||||
substituteInPlace apply-feature.py --replace \
|
substituteInPlace apply-feature.py --replace \
|
||||||
'ricty = ttLib.TTFont(options.in_font)' \
|
'ricty = ttLib.TTFont(options.in_font)' \
|
||||||
'ricty = ttLib.TTFont(options.in_font, recalcTimestamp=False)'
|
'ricty = ttLib.TTFont(options.in_font, recalcTimestamp=False)'
|
||||||
substituteInPlace build-py3.py --replace \
|
substituteInPlace build-py3.py --replace \
|
||||||
'datetime.date.today()' \
|
'datetime.date.today()' \
|
||||||
'datetime.date.fromtimestamp(float(os.environ["SOURCE_DATE_EPOCH"]))'
|
'datetime.date.fromtimestamp(float(os.environ["SOURCE_DATE_EPOCH"]))'
|
||||||
|
|
||||||
make
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -m444 -Dt $out/share/fonts/rictydiminished-with-firacode *.ttf
|
install -m444 -Dt $out/share/fonts/rictydiminished-with-firacode *.ttf
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
fontforge
|
# Python 3 not supported by parts of the build system
|
||||||
|
# https://github.com/hakatashi/RictyDiminished-with-FiraCode/pull/3
|
||||||
|
(fontforge.override {
|
||||||
|
python = python2;
|
||||||
|
})
|
||||||
(python3.withPackages (ps: [
|
(python3.withPackages (ps: [
|
||||||
ps.jinja2
|
ps.jinja2
|
||||||
ps.py3to2
|
ps.py3to2
|
||||||
@ -35,7 +43,7 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/hakatashi/RictyDiminished-with-FiraCode;
|
homepage = "https://github.com/hakatashi/RictyDiminished-with-FiraCode";
|
||||||
description = "The best Japanese programming font meets the awesone ligatures of Firacode";
|
description = "The best Japanese programming font meets the awesone ligatures of Firacode";
|
||||||
license = licenses.ofl;
|
license = licenses.ofl;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user