on develop help sign in
9 lines 456 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 };
8 json = builtins.fromJSON (builtins.readFile ./github.json);
9in fetch json