Skip to content

Commit

Permalink
track reflex-dom upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
plt-amy committed Jun 6, 2022
1 parent e452125 commit dec99fb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
8 changes: 0 additions & 8 deletions haskell-overlays/reflex-packages/dep/reflex-dom/git.json

This file was deleted.

8 changes: 8 additions & 0 deletions haskell-overlays/reflex-packages/dep/reflex-dom/github.json
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"
}
19 changes: 7 additions & 12 deletions haskell-overlays/reflex-packages/dep/reflex-dom/thunk.nix
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

0 comments on commit dec99fb

Please sign in to comment.