-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into no-group
- Loading branch information
Showing
31 changed files
with
433 additions
and
195 deletions.
There are no files selected for viewing
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
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
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
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
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 +1,4 @@ | ||
packages: . | ||
|
||
if arch(javascript) | ||
extra-packages: ghci |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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": "nix-haskell-ci", | ||
"branch": "main", | ||
"private": false, | ||
"rev": "17d1de24e89b9ca2c769d467b093d9c7fe58854e", | ||
"sha256": "01f0dm2rjyiz6dfx8sshdyipmp6vvzx671qnvv88sk6947l0v3cr" | ||
} |
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
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,2 @@ | ||
# DO NOT HAND-EDIT THIS FILE | ||
import (import ./thunk.nix) |
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": "NixOS", | ||
"repo": "nixpkgs", | ||
"branch": "nixpkgs-unstable", | ||
"private": false, | ||
"rev": "c7eb65213bd7d95eafb8c5e2e181f04da103d054", | ||
"sha256": "1glf6j13hbwi459qrc8kkkhfw27a08vdg17sr3zwhadg4bkxz5ia" | ||
} |
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,12 @@ | ||
# DO NOT HAND-EDIT THIS FILE | ||
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 (builtins.fetchTarball { | ||
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz"; | ||
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr"; | ||
}) {}).fetchFromGitHub { | ||
inherit owner repo rev sha256 fetchSubmodules private; | ||
}; | ||
json = builtins.fromJSON (builtins.readFile ./github.json); | ||
in fetch json |
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,2 @@ | ||
# DO NOT HAND-EDIT THIS FILE | ||
import (import ./thunk.nix) |
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-platform", | ||
"branch": "develop", | ||
"private": false, | ||
"rev": "34c75631e7f2dd1409847b9df57252b96737e73a", | ||
"sha256": "1nwyybjy65b7qnb62wcm74nqfndr8prr2xsfvaianps0yzm366d0" | ||
} |
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,12 @@ | ||
# DO NOT HAND-EDIT THIS FILE | ||
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 (builtins.fetchTarball { | ||
url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz"; | ||
sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr"; | ||
}) {}).fetchFromGitHub { | ||
inherit owner repo rev sha256 fetchSubmodules private; | ||
}; | ||
json = builtins.fromJSON (builtins.readFile ./github.json); | ||
in fetch json |
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 @@ | ||
{ compiler ? "ghc910" }: | ||
|
||
{ | ||
project = { | ||
src = ../../.; | ||
compiler-nix-name = compiler; | ||
}; | ||
} |
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,5 @@ | ||
{ haskellNix ? null }: | ||
|
||
let ci = import ../deps/nix-haskell-ci (if haskellNix != null then { inherit haskellNix; } else {}); | ||
project = import ../project/haskell.nix {}; | ||
in with ci.haskell-nix; buildMatrix { inherit project; targets = matrix.default; } |
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,66 @@ | ||
{ reflex-platform-fun ? import ../deps/reflex-platform | ||
}: | ||
|
||
let native-reflex-platform = reflex-platform-fun { __useNewerCompiler = true; }; | ||
inherit (native-reflex-platform.nixpkgs) lib; | ||
systems = [ | ||
"x86_64-linux" | ||
# "x86_64-darwin" | ||
]; | ||
|
||
perPlatform = lib.genAttrs systems (system: let | ||
srcFilter = | ||
builtins.filterSource (path: type: !(builtins.elem (baseNameOf path) [ | ||
"release.nix" | ||
".git" | ||
"dist" | ||
"dist-newstyle" | ||
"cabal.haskell-ci" | ||
"cabal.project" | ||
".travis.yml" | ||
])); | ||
reflex-platform = reflex-platform-fun { inherit system; __useNewerCompiler = true; }; | ||
compilers = [ | ||
"ghc" | ||
"ghcjs" | ||
] ++ lib.optionals (reflex-platform.androidSupport) [ | ||
"ghcAndroidAarch64" | ||
"ghcAndroidAarch32" | ||
] ++ lib.optionals (reflex-platform.iosSupport) [ | ||
"ghcIosAarch64" | ||
]; | ||
nixpkgsGhcs = | ||
let | ||
pkgs = import ../deps/nixpkgs { inherit system; }; | ||
nixGhc945 = pkgs.haskell.packages.ghc945.override { | ||
}; | ||
nixGhc961 = pkgs.haskell.packages.ghc961.override { | ||
}; | ||
in | ||
{ | ||
ghc945 = nixGhc945.callCabal2nix "patch" srcFilter {}; | ||
ghc961 = nixGhc961.callCabal2nix "patch" srcFilter {}; | ||
}; | ||
compilerPkgs = lib.genAttrs compilers (ghc: let | ||
reflex-platform = reflex-platform-fun { | ||
inherit system; | ||
__useNewerCompiler = true; | ||
haskellOverlays = [ | ||
# Use this package's source for reflex | ||
(self: super: { | ||
_dep = super._dep // { | ||
patch = srcFilter ../../.; | ||
}; | ||
}) | ||
]; | ||
}; | ||
in reflex-platform.${ghc}.patch); | ||
in compilerPkgs // nixpkgsGhcs // { | ||
cache = reflex-platform.pinBuildInputs "patch-${system}" | ||
(builtins.attrValues compilerPkgs); | ||
}); | ||
|
||
metaCache = native-reflex-platform.pinBuildInputs "patch-everywhere" | ||
(map (a: a.cache) (builtins.attrValues perPlatform)); | ||
|
||
in perPlatform // { inherit metaCache; } |
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,6 @@ | ||
{ haskellNix ? null }: | ||
|
||
let ci = import ../deps/nix-haskell-ci (if haskellNix != null then { inherit haskellNix; } else {}); | ||
haskell = ci.nix-haskell; | ||
project = import ../project/haskell.nix {}; | ||
in haskell.project project |
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,15 @@ | ||
let | ||
rp = import ../deps/reflex-platform { __useNewerCompiler = true; }; | ||
pkgs = rp.nixpkgs; | ||
system = builtins.currentSystem; | ||
in | ||
pkgs.mkShell { | ||
name = "shell"; | ||
buildInputs = [ | ||
pkgs.cabal-install | ||
pkgs.ghcid | ||
]; | ||
inputsFrom = [ | ||
(import ../release/reflex-platform.nix {}).${system}.ghc.env | ||
]; | ||
} |
Oops, something went wrong.