2018-02-25 18:19:10 +01:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub, python, pyyaml, fonttools, fontforge }:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
buildPythonApplication {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "scfbuild";
|
2018-02-25 18:19:10 +01:00
|
|
|
version = "1.0.3";
|
|
|
|
|
2019-10-30 18:35:22 +01:00
|
|
|
format = "other";
|
|
|
|
|
2018-02-25 18:19:10 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-10-30 18:35:22 +01:00
|
|
|
owner = "13rac1";
|
2018-02-25 18:19:10 +01:00
|
|
|
repo = "scfbuild";
|
2019-02-27 20:47:59 +01:00
|
|
|
rev = "9acc7fc5fedbf48683d8932dd5bd7583bf922bae";
|
|
|
|
sha256 = "1zlqsxkpg7zvmhdjgbqwwc9qgac2b8amzq8c5kwyh5cv95zcp6qn";
|
2018-02-25 18:19:10 +01:00
|
|
|
};
|
|
|
|
|
2019-10-30 18:35:22 +01:00
|
|
|
patches = [
|
|
|
|
# Convert to Python 3
|
|
|
|
# https://github.com/13rac1/scfbuild/pull/19
|
|
|
|
./python-3.patch
|
|
|
|
];
|
2018-02-25 18:19:10 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyyaml fonttools fontforge ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-10-30 18:35:22 +01:00
|
|
|
runHook preInstall
|
|
|
|
|
2018-02-25 18:19:10 +01:00
|
|
|
mkdir -p $out/${python.sitePackages}
|
|
|
|
cp -r scfbuild $out/${python.sitePackages}
|
|
|
|
cp -r bin $out
|
2019-10-30 18:35:22 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
2018-02-25 18:19:10 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SVGinOT color font builder";
|
2019-10-30 18:35:22 +01:00
|
|
|
homepage = https://github.com/13rac1/scfbuild;
|
2018-02-25 18:19:10 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|