-
-
Save msteen/6741878f8919f8e2363869693e7ef085 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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