Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use native JS backend #137

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 31 additions & 27 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# an ad-hoc nix setup, pending proper nixification of the build

# roughly release-22.05
with import (builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/d3551b986a714071360b75feffa0ce117417f09c.tar.gz) { };
# nixpkgs master January 2023
with import (builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/6ff46bd3309820a57817ff82ef0fc05526b5266f.tar.gz) { };
with haskell.lib;
mkShellNoCC rec {
name = "incredible-proof-machine-env";
buildInputs = [
cabal-install

(haskell.packages.ghc8107.ghc.withPackages(p: with p; [
(haskell.packages.ghcHEAD.ghc.withPackages(p: with p; [
aeson
parsec
tagged
Expand All @@ -24,34 +24,38 @@ mkShellNoCC rec {
extra
]))

((haskell.packages.ghcjs
(( pkgsCross.ghcjs.haskell.packages.ghcHEAD
.override({ overrides = self: super: {
# depends on doctest
foldl = dontCheck super.foldl;
# fails
unbound-generics = dontCheck super.unbound-generics;
unliftio = dontCheck super.unliftio;
conduit = dontCheck super.conduit;
# slow
mono-traversable = dontCheck super.mono-traversable;
libyaml = dontCheck super.libyaml;
text-short = dontCheck super.text-short;
# # depends on doctest
# foldl = dontCheck super.foldl;
# # fails
# unbound-generics = dontCheck super.unbound-generics;
# unliftio = dontCheck super.unliftio;
# conduit = dontCheck super.conduit;
# # slow
# mono-traversable = dontCheck super.mono-traversable;
# libyaml = dontCheck super.libyaml;
# text-short = dontCheck super.text-short;


# Can be dropped when nixpkgs includes
# https://github.com/NixOS/nixpkgs/pull/177489/files
# Keep synced with kaleidogen for better cache usage!
ghcjs-base = super.ghcjs-base.overrideAttrs(d: {
src = pkgs.fetchFromGitHub {
owner = "ghcjs";
repo = "ghcjs-base";
rev = "fbaae59b05b020e91783df122249095e168df53f";
sha256 = "sha256-x6eCAK1Hne0QkV3Loi9YpxbleNHU593E4AO8cbk2vUc=";
};
});
# # Can be dropped when nixpkgs includes
# # https://github.com/NixOS/nixpkgs/pull/177489/files
# # Keep synced with kaleidogen for better cache usage!
# ghcjs-base = super.ghcjs-base.overrideAttrs(d: {
# src = pkgs.fetchFromGitHub {
# owner = "ghcjs";
# repo = "ghcjs-base";
# rev = "fbaae59b05b020e91783df122249095e168df53f";
# sha256 = "sha256-x6eCAK1Hne0QkV3Loi9YpxbleNHU593E4AO8cbk2vUc=";
# };
# });

};}))
.ghc.withPackages(p: with p; [
# new base dependency
indexed-traversable = doJailbreak super.indexed-traversable;
OneTuple = doJailbreak super.OneTuple;
hashable = doJailbreak super.hashable;
};})
).ghc.withPackages(p: with p; [
aeson
parsec
tagged
Expand Down