evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / no / nomnatong / package.nix
blob7a08a43c1bb1687e523317a375a3030330eea1e9
1 { lib
2 , stdenvNoCC
3 , fetchFromGitHub
4 , python3Packages
5 , nix-update-script
6 }:
8 stdenvNoCC.mkDerivation (finalAttrs: {
9   pname = "nomnatong";
10   version = "5.12";
12   src = fetchFromGitHub {
13     owner = "nomfoundation";
14     repo = "font";
15     rev = "v${finalAttrs.version}";
16     hash = "sha256-DMKL5a830V07U4Pogp2EQtGQUJ26d3F4u7ce5aWPAI8=";
17   };
19   nativeBuildInputs = [
20     python3Packages.afdko
21     python3Packages.fonttools
22   ];
24   sourceRoot = "${finalAttrs.src.name}/src";
26   buildPhase = ''
27     runHook preBuild
29     makeotf -r -f font.pfa -omitMacNames -ff features.txt -mf FontMenuNameDB -ga -ci UnicodeVariationSequences.txt
30     otf2ttf NomNaTong-Regular.otf
31     sfntedit -d DSIG NomNaTong-Regular.otf
33     runHook postBuild
34   '';
36   installPhase = ''
37     runHook preInstall
39     install -Dm444 NomNaTong-Regular.otf -t $out/share/fonts/opentype/
40     install -Dm444 NomNaTong-Regular.ttf -t $out/share/fonts/truetype/
42     runHook postInstall
43   '';
45   passthru.updateScript = nix-update-script { };
47   meta = {
48     homepage = "http://nomfoundation.org/nom-tools/Nom-Font";
49     description = "Hán-Nôm Coded Character Set and Nom Na Tong Regular Reference Font";
50     license = lib.licenses.mit;
51     maintainers = with lib.maintainers; [ ];
52     platforms = lib.platforms.all;
53   };