forked from reflex-frp/reflex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: enable ghc 9.4.3 * cabal: loosen bounds * ci: remove extra cabal update * Add shell.nix; Allow compiler selection when entering shell * ci: update github cache action * cabal: loosen version bounds; Improve shell.nix * cabal: loosen time bounds * ci: fix reflex-platform build
- Loading branch information
Showing
10 changed files
with
97 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,6 @@ tags | |
hsenv.log | ||
\#*# | ||
.#* | ||
/shell.nix | ||
/ghci-tmp | ||
*.dump-* | ||
*.verbose-core2core |
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": "e37ef84b478fa8da0ced96522adfd956fde9047a", | ||
"sha256": "03qak39mn2142gp6zglrzrkdbig6h4r3da1psmvf3q2dwcw3zsfv" | ||
} |
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,15 @@ | ||
{ haskellLib, self, super }: | ||
{ | ||
# jailbreak here because callHackageDirect doesn't give us a way to get the latest revision of a package | ||
# 0.1.0.0-r3 would work just fine | ||
commutative-semigroups = haskellLib.doJailbreak (self.callHackageDirect { | ||
pkg = "commutative-semigroups"; | ||
ver = "0.1.0.0"; | ||
sha256 = "0xmv20n3iqjc64xi3c91bwqrg8x79sgipmflmk21zz4rj9jdkv8i"; | ||
} {}); | ||
patch = self.callHackageDirect { | ||
pkg = "patch"; | ||
ver = "0.0.8.1"; | ||
sha256 = "0q5rxnyilhbnfph48fnxbclggsbbhs0pkn0kfiadm0hmfr440cgk"; | ||
} {}; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Enter a shell for this project, with some choice of compiler. By default, we | ||
# select the version of ghc provided by reflex-platform, but you can choose a | ||
# later version from nixpkgs as well by doing: | ||
# $ nix-shell --argstr compiler "ghc943" | ||
{ compiler ? "reflex-platform" # or "ghc943", "ghc924" | ||
}: | ||
let | ||
rp = import ./dep/reflex-platform { __useNewerCompiler = true; }; | ||
pkgs = rp.nixpkgs; | ||
haskellLib = pkgs.haskell.lib; | ||
system = builtins.currentSystem; | ||
nixpkgsGhc = ((import ./nixpkgs {}).haskell.packages.${compiler}).override { | ||
overrides = self: super: import ./overlay.nix { inherit self super haskellLib; } // { | ||
hlint = self.callHackageDirect { | ||
pkg = "hlint"; | ||
ver = "3.5"; | ||
sha256 = "1np43k54918v54saqqgnd82ccd6225njwxpg2031asi70jam80x9"; | ||
} {}; | ||
}; | ||
}; | ||
reflexEnv = if compiler == "reflex-platform" | ||
then (import ./release.nix {}).${system}.ghc.reflex.env | ||
else (nixpkgsGhc.callCabal2nix "reflex" (import ./src.nix) {}).env; | ||
in | ||
pkgs.mkShell { | ||
name = "shell"; | ||
buildInputs = [ | ||
pkgs.cabal-install | ||
pkgs.ghcid | ||
]; | ||
inputsFrom = [ | ||
reflexEnv | ||
]; | ||
} |
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 @@ | ||
builtins.filterSource (path: type: !(builtins.elem (baseNameOf path) [ | ||
"release.nix" | ||
".git" | ||
"dist" | ||
"cabal.haskell-ci" | ||
"cabal.project" | ||
".travis.yml" | ||
])) ./. |