1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00

Added ghcjs-base to GHCJS 8.4 / 8.2

This commit is contained in:
Will Fancher 2018-07-15 22:53:54 -04:00
parent 68ea661bb4
commit ff83aca511
3 changed files with 36 additions and 1 deletions

View file

@ -16,5 +16,6 @@ $ nix-prefetch-git https://github.com/ghcjs/ghcjs --rev refs/heads/ghc-8.4 \
| jq '{ url, rev, fetchSubmodules, sha256 }' \
> 8.4/git.json
$ cat $(nix-build ../../../.. -A haskell.compiler.ghcjs82.genStage0 --no-out-link) > 8.4/stage0.nix
$ cabal2nix git://github.com/ghcjs/ghcjs-base > ghcjs-base.nix
```

View file

@ -18,6 +18,7 @@
, lib
, nodePackages
, ghcjsDepOverrides ? (_:_:{})
, haskell
}:
let
@ -48,7 +49,11 @@ let
# Relics of the old GHCJS build system
stage1Packages = [];
mkStage2 = _: {};
mkStage2 = { callPackage }: {
# https://github.com/ghcjs/ghcjs-base/issues/110
# https://github.com/ghcjs/ghcjs-base/pull/111
ghcjs-base = haskell.lib.dontCheck (haskell.lib.doJailbreak (callPackage ./ghcjs-base.nix {}));
};
haskellCompilerName = "ghcjs-${bootGhcjs.version}";
};

View file

@ -0,0 +1,29 @@
{ mkDerivation, aeson, array, attoparsec, base, binary, bytestring
, containers, deepseq, directory, dlist, fetchgit, ghc-prim
, ghcjs-prim, hashable, HUnit, integer-gmp, primitive, QuickCheck
, quickcheck-unicode, random, scientific, stdenv, test-framework
, test-framework-hunit, test-framework-quickcheck2, text, time
, transformers, unordered-containers, vector
}:
mkDerivation {
pname = "ghcjs-base";
version = "0.2.0.0";
src = fetchgit {
url = "git://github.com/ghcjs/ghcjs-base";
sha256 = "0qr05m0djll3x38dhl85pl798arsndmwfhil8yklhb70lxrbvfrs";
rev = "01014ade3f8f5ae677df192d7c2a208bd795b96c";
};
libraryHaskellDepends = [
aeson attoparsec base binary bytestring containers deepseq dlist
ghc-prim ghcjs-prim hashable integer-gmp primitive scientific text
time transformers unordered-containers vector
];
testHaskellDepends = [
array base bytestring deepseq directory ghc-prim ghcjs-prim HUnit
primitive QuickCheck quickcheck-unicode random test-framework
test-framework-hunit test-framework-quickcheck2 text
];
homepage = "http://github.com/ghcjs/ghcjs-base";
description = "base library for GHCJS";
license = stdenv.lib.licenses.mit;
}