Skip to content

Instantly share code, notes, and snippets.

@msteen
Last active January 24, 2019 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msteen/6741878f8919f8e2363869693e7ef085 to your computer and use it in GitHub Desktop.
Save msteen/6741878f8919f8e2363869693e7ef085 to your computer and use it in GitHub Desktop.
{
nixpkgs.overlays = singleton (self: super: {
mirrorsPath = self.path + /pkgs/build-support/fetchurl/mirrors.nix;
customMirrors = import mirrorsPath // {
hashedMirrors = [
http://tarballs.nixos.org
http://example.com
];
};
customImport = scopedImport {
import = path: if path == mirrorsPath then customMirrors else customImport path;
};
fetchurl = (customImport self.path { }).fetchurl;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment