-
-
Notifications
You must be signed in to change notification settings - Fork 455
Open
Description
Is it possible to have exception for the following URLs?
The thing is my NUR repo is a flake and I use Chrome OS fonts which were removed from latest nixpkgs yet I want to have them. I have the following code:
ttf-croscore = (import (import ./flake-compat.nix).inputs.nixpkgs-croscore {
system = stdenv.system;
}).noto-fonts.overrideAttrs(oldAttrs: {
pname = "ttf-croscore";
installPhase = ''
install -m444 -Dt $out/share/fonts/truetype/croscore hinted/*/{Arimo,Cousine,Tinos}/*.ttf
'';
meta = oldAttrs.meta // {
description = "Chrome OS core fonts";
longDescription = "This package includes the Arimo, Cousine, and Tinos fonts.";
};
});
flake-compat.nix:
(import
(
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in
fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}
)
{ src = ./.; }
).defaultNix
nixpkgs-croscore is nixpkgs pinned before removation of croscore fonts. The code couldn't use nixpkgs fetchers as they don't let to import the result which is needed for both flake-compat and nixpkgs.
Metadata
Metadata
Assignees
Labels
No labels