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