Trying to package a font; why is this happening?

8 months ago by Malgas to c/nixos

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.

nixos
nixos

@infosec.pub

login for more options
1421
87
28

NixOS is a Linux distribution built on top of the Nix package manager. Its declarative configuration allows reliable system upgrades via several official channels of stability and size.

This community discusses NixOS, Nix, and everything related.

go to feed...