Skip to content

Commit

Permalink
Support for GHC8.10
Browse files Browse the repository at this point in the history
Unable to create shell. See NixOS/nixpkgs#85446
  • Loading branch information
Shimuuar committed Jan 11, 2021
1 parent 1410996 commit 1b21d87
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 5 deletions.
41 changes: 41 additions & 0 deletions nix/derivations/ghc810/lens.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ mkDerivation, array, base, base-compat, base-orphans, bifunctors
, bytestring, Cabal, cabal-doctest, call-stack, comonad, containers
, contravariant, criterion, deepseq, directory, distributive
, doctest, exceptions, filepath, free, generic-deriving, ghc-prim
, hashable, HUnit, kan-extensions, mtl, nats, parallel, profunctors
, QuickCheck, reflection, semigroupoids, semigroups, simple-reflect
, stdenv, tagged, template-haskell, test-framework
, test-framework-hunit, test-framework-quickcheck2, text
, th-abstraction, transformers, transformers-compat
, unordered-containers, vector
}:
mkDerivation {
pname = "lens";
version = "4.19.2";
sha256 = "52f858ae3971a5104cdba5e81a27d154fda11fe65a54a4ac328c85904bdec23b";
revision = "2";
editedCabalFile = "1bp6s0ifwdmzv946krxgxqakw02iriqmzvvcypwrgcynrn9wkn9y";
setupHaskellDepends = [ base Cabal cabal-doctest filepath ];
libraryHaskellDepends = [
array base base-orphans bifunctors bytestring call-stack comonad
containers contravariant distributive exceptions filepath free
ghc-prim hashable kan-extensions mtl parallel profunctors
reflection semigroupoids tagged template-haskell text
th-abstraction transformers transformers-compat
unordered-containers vector
];
testHaskellDepends = [
base bytestring containers deepseq directory doctest filepath
generic-deriving HUnit mtl nats parallel QuickCheck semigroups
simple-reflect test-framework test-framework-hunit
test-framework-quickcheck2 text transformers unordered-containers
vector
];
benchmarkHaskellDepends = [
base base-compat bytestring comonad containers criterion deepseq
generic-deriving transformers unordered-containers vector
];
homepage = "http://github.com/ekmett/lens/";
description = "Lenses, Folds and Traversals";
license = stdenv.lib.licenses.bsd2;
}
16 changes: 15 additions & 1 deletion nix/overrides.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
# List of GHC versions for which we apply overrides
versions = ["ghc844" "ghc865" "ghc883" "ghcjs"];
versions = ["ghc844" "ghc865" "ghc883" "ghc8101" "ghcjs"];
# List of packages with custom overrides
derivations = {
haskell = ./derivations/haskell;
ghc844 = ./derivations/ghc84;
ghc865 = ./derivations/ghc86;
ghc883 = ./derivations/ghc88;
ghc8101 = ./derivations/ghc810;
};
# Common overrides for librarise
haskell = {
Expand All @@ -24,6 +25,19 @@
};
ghc883 = {
};
ghc8101 = {
generic-lens = { check = false; };
monad-par = { check = false; };
http-media = { jailbreak = true; };
cborg = { jailbreak = true; };
serialise = { jailbreak = true; };
microlens-th = { jailbreak = true; };
retry = { jailbreak = true; };
safe-exceptions = { jailbreak = true; };
vault = { jailbreak = true; };
servant = { jailbreak = true; check = false; };
servant-server = { jailbreak = true; check = false; };
};
ghcjs = {
SHA = { check = false; };
cborg = { check = false; };
Expand Down
9 changes: 5 additions & 4 deletions nix/release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ let
in
{
inherit pkgs;
ghc844 = hschainPkgAll;
ghc865 = hschainPkgAll;
ghc883 = hschainPkgAll;
ghcjs = hschainPkgJs;
ghc844 = hschainPkgAll;
ghc865 = hschainPkgAll;
ghc883 = hschainPkgAll;
ghc8101 = hschainPkgAll;
ghcjs = hschainPkgJs;
};
in release

0 comments on commit 1b21d87

Please sign in to comment.