Merge pull request #142695 from ck3d/add-nerd-font-patcher

nerd-font-patcher: init at 2.1.0

authored by

markuskowa and committed by
GitHub
ed71268f d9cf07e3

+43
+41
pkgs/applications/misc/nerd-font-patcher/default.nix
··· 1 + { python3Packages, lib, fetchFromGitHub }: 2 + 3 + python3Packages.buildPythonApplication rec { 4 + pname = "nerd-font-patcher"; 5 + version = "2.1.0"; 6 + 7 + # The size of the nerd fonts repository is bigger than 2GB, because it 8 + # contains a lot of fonts and the patcher. 9 + # until https://github.com/ryanoasis/nerd-fonts/issues/484 is not fixed, 10 + # we download the patcher from an alternative repository 11 + src = fetchFromGitHub { 12 + owner = "betaboon"; 13 + repo = "nerd-fonts-patcher"; 14 + rev = "180684d7a190f75fd2fea7ca1b26c6540db8d3c0"; 15 + sha256 = "sha256-FAbdLf0XiUXGltAgmq33Wqv6PFo/5qCv62UxXnj3SgI="; 16 + }; 17 + 18 + propagatedBuildInputs = with python3Packages; [ fontforge ]; 19 + 20 + format = "other"; 21 + 22 + postPatch = '' 23 + sed -i font-patcher \ 24 + -e 's,__dir__ + "/src,"'$out'/share/${pname},' 25 + ''; 26 + 27 + dontBuild = true; 28 + 29 + installPhase = '' 30 + mkdir -p $out/bin $out/share/${pname} 31 + install -Dm755 font-patcher $out/bin/${pname} 32 + cp -ra src/glyphs $out/share/${pname} 33 + ''; 34 + 35 + meta = with lib; { 36 + description = "Font patcher to generate Nerd font"; 37 + homepage = "https://nerdfonts.com/"; 38 + license = licenses.mit; 39 + maintainers = with maintainers; [ ck3d ]; 40 + }; 41 + }
+2
pkgs/top-level/all-packages.nix
··· 26771 26771 26772 26772 neocomp = callPackage ../applications/window-managers/neocomp { }; 26773 26773 26774 + nerd-font-patcher = callPackage ../applications/misc/nerd-font-patcher { }; 26775 + 26774 26776 newsflash = callPackage ../applications/networking/feedreaders/newsflash { }; 26775 26777 26776 26778 nicotine-plus = callPackage ../applications/networking/soulseek/nicotine-plus { };