I’m trying to write a package for the Zen Maru Gothic font, which is available on Google’s font repository on github. (https://github.com/google/fonts) It’s a huge repo with thousands of fonts, so I’m trying to use sparseCheckout to grab only the part I need:

src = pkgs.fetchgit {
   url = "https://github.com/google/fonts.git";
   rev = "v0.4.9";
   sha256 = #snip long hash;
   sparseCheckout = [ "ofl/zenmarugothic" ];
};

I was originally using fetchFromGitHub pointed at the same repo. In both cases, what’s actually being fetched into the store seems to be the root directory of the Google Fonts Axis Registry repository (https://github.com/googlefonts/axisregistry) which has a different url, name, and owner.

I feel like I’m going crazy.

  • Malgas@beehaw.orgOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 months ago

    Yup, that’ll be it. Guess I looked at the most recent tag, saw a date in late February, and skipped past the year entirely, assuming it must be recent.