diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-02-28 13:24:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 13:24:07 +0100 |
commit | 21968db378c9144f418c1e8e7002316aa8b75776 (patch) | |
tree | 1a4cea445066efe0be6fb3c69892580981038fd0 | |
parent | 504461c5bf80cc53aa227b93832e1d05553d4455 (diff) | |
parent | 97e4ab5ee8575d8bb2f3d3ec6e1daf1473b61a4b (diff) | |
download | nixpkgs-21968db378c9144f418c1e8e7002316aa8b75776.tar nixpkgs-21968db378c9144f418c1e8e7002316aa8b75776.tar.gz nixpkgs-21968db378c9144f418c1e8e7002316aa8b75776.tar.bz2 nixpkgs-21968db378c9144f418c1e8e7002316aa8b75776.tar.lz nixpkgs-21968db378c9144f418c1e8e7002316aa8b75776.tar.xz nixpkgs-21968db378c9144f418c1e8e7002316aa8b75776.tar.zst nixpkgs-21968db378c9144f418c1e8e7002316aa8b75776.zip |
Merge pull request #159298 from DeeUnderscore/misc/nerd-font-patcher-sparse
-rw-r--r-- | pkgs/applications/misc/nerd-font-patcher/default.nix | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/applications/misc/nerd-font-patcher/default.nix b/pkgs/applications/misc/nerd-font-patcher/default.nix index 6807cd9024f..ac3fa9200a7 100644 --- a/pkgs/applications/misc/nerd-font-patcher/default.nix +++ b/pkgs/applications/misc/nerd-font-patcher/default.nix @@ -4,15 +4,16 @@ python3Packages.buildPythonApplication rec { pname = "nerd-font-patcher"; version = "2.1.0"; - # The size of the nerd fonts repository is bigger than 2GB, because 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 + # This uses a sparse checkout because the repo is >2GB without it src = fetchFromGitHub { - owner = "betaboon"; - repo = "nerd-fonts-patcher"; - rev = "180684d7a190f75fd2fea7ca1b26c6540db8d3c0"; - sha256 = "sha256-FAbdLf0XiUXGltAgmq33Wqv6PFo/5qCv62UxXnj3SgI="; + owner = "ryanoasis"; + repo = "nerd-fonts"; + rev = "v${version}"; + sparseCheckout = '' + font-patcher + /src/glyphs + ''; + sha256 = "sha256-ePBlEVjzAJ7g6iAGIqPfgZ8bwtNILmyEVm0zD+xNN6k="; }; propagatedBuildInputs = with python3Packages; [ fontforge ]; |