Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / ge / get-google-fonts / package.nix
blob0939c43443e3f8533dbf0e0323f44a4638f5ad28
1 { lib
2 , buildNpmPackage
3 , fetchFromGitHub
4 , fetchpatch
5 }:
7 buildNpmPackage {
8   pname = "get-google-fonts";
9   version = "1.2.2-unstable-2020-06-30";
11   src = fetchFromGitHub {
12     owner = "MrMaxie";
13     repo = "get-google-fonts";
14     rev = "2f8b15f6d7072533ca2ad5e0b74ccf28a313e8c8";
15     hash = "sha256-LD+ur0GB2uefggQsdQRkKMwWB39HGiYYiJIrTLudcLc=";
16   };
18   patches = [
19     # update lock file to contain all necessary information
20     # https://github.com/MrMaxie/get-google-fonts/pull/27
21     (fetchpatch {
22       url = "https://github.com/MrMaxie/get-google-fonts/commit/f2c818fc7c9ee228db020305f432fd08eda7dc5f.patch";
23       hash = "sha256-BszZdAZWpnkNETKYvSElg0lCjgcP7BNeXfMvePKAio4=";
24     })
25   ];
27   npmDepsHash = "sha256-VUphB0Qq94rlcGrrsO2Nat/bD2IZTtdevGKsXFu/YdQ=";
29   dontBuild = true;
31   meta = with lib; {
32     description = "Downloads and adapts Google fonts to working offline";
33     mainProgram = "get-google-fonts";
34     homepage = "https://github.com/MrMaxie/get-google-fonts";
35     license = licenses.asl20;
36     maintainers = with maintainers; [ SuperSandro2000 ];
37   };