mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
d1fdcf67b5
No release tags on the repo, unclear how versioning works, keeping version number reported in repo for now. Users of this (such as twemoji-color-font) have build instructions that always grab latest git revision so this seems appropriate.
31 lines
830 B
Nix
31 lines
830 B
Nix
{ 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 ];
|
|
};
|
|
}
|