Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbecich committed Nov 6, 2021
1 parent b0febbd commit 04547c0
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 8 deletions.
20 changes: 19 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ packages:
codeworld-account/
codeworld-api/
codeworld-auth/
codeworld-available-pkgs/
-- codeworld-available-pkgs/
codeworld-base/
codeworld-compiler/
codeworld-error-sanitizer/
Expand All @@ -12,3 +12,21 @@ packages:
codeworld-prediction/
codeworld-server/
funblocks-client/

source-repository-package
type: git
location: https://github.com/peterbecich/hgeometry.git
tag: f898c5580c609320f0c7cc776e80f609711d19c5
subdir: hgeometry
--sha256: 0bmcb3dh1sfz6k7i30czcqqvarm1mzn55xdnimpnp19kj8v5g8nj

source-repository-package
type: git
location: https://github.com/peterbecich/hgeometry.git
tag: f898c5580c609320f0c7cc776e80f609711d19c5
subdir: hgeometry-combinatorial
--sha256: 0bmcb3dh1sfz6k7i30czcqqvarm1mzn55xdnimpnp19kj8v5g8nj

allow-newer:
reflex:witherable
, patch:witherable
4 changes: 2 additions & 2 deletions codeworld-api/codeworld-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Library
template-haskell >= 2.8 && < 2.18,
text >= 1.2.2 && < 1.3,
time >= 1.8 && < 2.0,
witherable >= 0.3 && < 0.4
witherable >= 0.3

if impl(ghcjs)
Js-sources: jsbits/sim_fp.js
Expand Down Expand Up @@ -126,7 +126,7 @@ Test-suite unit-tests
template-haskell >= 2.8 && < 2.18,
text >= 1.2.2 && < 1.3,
time >= 1.8 && < 2.0,
witherable >= 0.3 && < 0.4
witherable >= 0.3

if impl(ghcjs)
Js-sources: jsbits/sim_fp.js
Expand Down
1 change: 1 addition & 0 deletions codeworld-available-pkgs/codeworld-available-pkgs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Copyright: (c) 2020, The CodeWorld Authors
Bug-reports: https://github.com/google/codeworld/issues

Library
extra-libraries: m
if impl(ghcjs -any)
Build-depends:
Boolean,
Expand Down
15 changes: 13 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://input-output-hk.github.io/haskell.nix/tutorials/getting-started/
{ compiler ? "ghc865",
ghcjs ? "ghcjs",
# ghcjs ? "ghcjs",
withCoverage ? false
}:
let
Expand All @@ -9,8 +9,19 @@
pkgs = import
haskellNix.sources.nixpkgs-unstable
haskellNix.nixpkgsArgs;
overlays = [
(self: super:
{
m = self.stdenv.mkDerivation {
name = "m";
unpackPhase = "true";
installPhase = "mkdir -p $out";
};
}
)
];

in
# pkgs.pkgsCross.ghcjs.haskell-nix.project {
pkgs.haskell-nix.project {
projectFileName = "cabal.project";
src = pkgs.haskell-nix.haskellLib.cleanGit {
Expand Down
6 changes: 3 additions & 3 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"homepage": "https://input-output-hk.github.io/haskell.nix",
"owner": "input-output-hk",
"repo": "haskell.nix",
"rev": "166d280952e5f1791ce5aebc995a3525f7174e4b",
"sha256": "0q4xjdck74jp6dhyf0g0flj4fhs59rhcyslklfwmfhbq8afbqprn",
"rev": "564458fc4080c0fc51e316d74c3dbb68639ea839",
"sha256": "0d7kp3sqw8zhp4sv5awla6ch15mbndmr3640y3pwlvkcb59p8amm",
"type": "tarball",
"url": "https://github.com/input-output-hk/haskell.nix/archive/166d280952e5f1791ce5aebc995a3525f7174e4b.tar.gz",
"url": "https://github.com/input-output-hk/haskell.nix/archive/564458fc4080c0fc51e316d74c3dbb68639ea839.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"niv": {
Expand Down

0 comments on commit 04547c0

Please sign in to comment.