about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/scfbuild/default.nix
blob: 1b7afdfbe9df0b4674ce35b9a56d8a7ef61781f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, buildPythonApplication, fetchFromGitHub, python, pyyaml, fonttools, fontforge }:

buildPythonApplication rec {
  name = "scfbuild-${version}";
  version = "1.0.3";

  src = fetchFromGitHub {
    owner = "eosrei";
    repo = "scfbuild";
    rev = "9acc7fc5fedbf48683d8932dd5bd7583bf922bae";
    sha256 = "1zlqsxkpg7zvmhdjgbqwwc9qgac2b8amzq8c5kwyh5cv95zcp6qn";
  };

  phases = [ "unpackPhase" "installPhase" "fixupPhase" ];

  propagatedBuildInputs = [ pyyaml fonttools fontforge ];

  installPhase = ''
    mkdir -p $out/${python.sitePackages}
    cp -r scfbuild $out/${python.sitePackages}
    cp -r bin $out
  '';

  meta = with lib; {
    description = "SVGinOT color font builder";
    homepage = https://github.com/eosrei/scfbuild;
    license = licenses.gpl3;
    maintainers = with maintainers; [ abbradar ];
  };
}