diff --git a/pkgs/by-name/no/noto-fonts-cjk-sans/package.nix b/pkgs/by-name/no/noto-fonts-cjk-sans/package.nix index 974d8a698fbd..10b39469d344 100644 --- a/pkgs/by-name/no/noto-fonts-cjk-sans/package.nix +++ b/pkgs/by-name/no/noto-fonts-cjk-sans/package.nix @@ -4,6 +4,7 @@ fetchFromGitHub, nixosTests, gitUpdater, + static ? false, }: stdenvNoCC.mkDerivation rec { @@ -14,13 +15,20 @@ stdenvNoCC.mkDerivation rec { owner = "notofonts"; repo = "noto-cjk"; rev = "Sans${version}"; - hash = "sha256-IgalJkiOAVjNxKaPAQWfb5hKeqclliR4qVXCq63FGWY="; - sparseCheckout = [ "Sans/Variable/OTC" ]; + hash = "sha256-i3ZKoSy2SVs46IViha+Sg8atH4n3ywgrunHPLtVT4Pk="; + sparseCheckout = [ + "Sans/OTC" + "Sans/Variable/OTC" + ]; }; - installPhase = '' - install -m444 -Dt $out/share/fonts/opentype/noto-cjk Sans/Variable/OTC/*.otf.ttc - ''; + installPhase = + let + font-path = if static then "Sans/OTC/*.ttc" else "Sans/Variable/OTC/*.otf.ttc"; + in + '' + install -m444 -Dt $out/share/fonts/opentype/noto-cjk ${font-path} + ''; passthru.tests.noto-fonts = nixosTests.noto-fonts; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b07d1ab9e4f3..1dba152b606f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11725,6 +11725,10 @@ with pkgs; static = true; }; + noto-fonts-cjk-sans-static = callPackage ../by-name/no/noto-fonts-cjk-sans/package.nix { + static = true; + }; + noto-fonts-lgc-plus = callPackage ../by-name/no/noto-fonts/package.nix { suffix = "-lgc-plus"; variants = [