nerd-font-patcher: use upstream repo with sparseCheckout
This commit is contained in:
parent
684877ab70
commit
97e4ab5ee8
|
@ -4,15 +4,16 @@ python3Packages.buildPythonApplication rec {
|
||||||
pname = "nerd-font-patcher";
|
pname = "nerd-font-patcher";
|
||||||
version = "2.1.0";
|
version = "2.1.0";
|
||||||
|
|
||||||
# The size of the nerd fonts repository is bigger than 2GB, because it
|
# This uses a sparse checkout because the repo is >2GB without it
|
||||||
# contains a lot of fonts and the patcher.
|
|
||||||
# until https://github.com/ryanoasis/nerd-fonts/issues/484 is not fixed,
|
|
||||||
# we download the patcher from an alternative repository
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "betaboon";
|
owner = "ryanoasis";
|
||||||
repo = "nerd-fonts-patcher";
|
repo = "nerd-fonts";
|
||||||
rev = "180684d7a190f75fd2fea7ca1b26c6540db8d3c0";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-FAbdLf0XiUXGltAgmq33Wqv6PFo/5qCv62UxXnj3SgI=";
|
sparseCheckout = ''
|
||||||
|
font-patcher
|
||||||
|
/src/glyphs
|
||||||
|
'';
|
||||||
|
sha256 = "sha256-ePBlEVjzAJ7g6iAGIqPfgZ8bwtNILmyEVm0zD+xNN6k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ fontforge ];
|
propagatedBuildInputs = with python3Packages; [ fontforge ];
|
||||||
|
|
Loading…
Reference in a new issue