on patchable help sign in
8 lines 453 B history raw
1# DO NOT HAND-EDIT THIS FILE
2let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }:
3 if !fetchSubmodules && !private then builtins.fetchTarball {
4 url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256;
5 } else (import <nixpkgs> {}).fetchFromGitHub {
6 inherit owner repo rev sha256 fetchSubmodules private;
7 };
8in import (fetch (builtins.fromJSON (builtins.readFile ./github.json)))