ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / po / poppins / package.nix
blobf72ce9ffcc6923cb384e1513b00ebfba03864ee5
2   lib,
3   stdenvNoCC,
4   fetchFromGitHub,
5   unzip,
6 }:
7 stdenvNoCC.mkDerivation rec {
8   pname = "poppins";
9   version = "4.003";
11   src = fetchFromGitHub {
12     owner = "itfoundry";
13     repo = "poppins";
14     rev = "v${version}";
15     hash = "sha256-7+RQHYxNFqOw2EeS2hgrbK/VbUAiPorUtkyRb5MFh5w=";
16   };
18   nativeBuildInputs = [unzip];
20   installPhase = ''
21     runHook preInstall
22     unzip products/Poppins-4.003-GoogleFonts-TTF.zip
23     unzip products/PoppinsLatin-5.001-Latin-TTF.zip
24     install -Dm644 *.ttf -t $out/share/fonts/truetype
25     runHook postInstall
26   '';
28   meta = {
29     description = "Devanagari + Latin family for Google Fonts";
30     homepage = "https://github.com/itfoundry/Poppins/";
31     license = lib.licenses.ofl;
32     maintainers = with lib.maintainers; [nyawox];
33     platforms = lib.platforms.all;
34   };