-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"owner": "reflex-frp", | ||
"repo": "reflex-dom", | ||
"branch": "release/reflex-dom-core/0.7.0.0", | ||
"private": false, | ||
"rev": "a5ae0c8a8598ce531f80b8443cd3042314e821f3", | ||
"sha256": "04lrdhfkbk4nlj2lw7q96apjqmdydqafpylf10qgpjzpvn9la278" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
# DO NOT HAND-EDIT THIS FILE | ||
let fetch = {url, rev, branch ? null, sha256 ? null, fetchSubmodules ? false, private ? false, ...}: | ||
let realUrl = let firstChar = builtins.substring 0 1 url; in | ||
if firstChar == "/" then /. + url | ||
else if firstChar == "." then ./. + url | ||
else url; | ||
in if !fetchSubmodules && private then builtins.fetchGit { | ||
url = realUrl; inherit rev; | ||
${if branch == null then null else "ref"} = branch; | ||
} else (import <nixpkgs> {}).fetchgit { | ||
url = realUrl; inherit rev sha256; | ||
let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }: | ||
if !fetchSubmodules && !private then builtins.fetchTarball { | ||
url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256; | ||
} else (import <nixpkgs> {}).fetchFromGitHub { | ||
inherit owner repo rev sha256 fetchSubmodules private; | ||
}; | ||
json = builtins.fromJSON (builtins.readFile ./git.json); | ||
in fetch json | ||
json = builtins.fromJSON (builtins.readFile ./github.json); | ||
in fetch json |