on master help sign in
Merge pull request #46 from bitonic/nix-ghcjs

have jsaddle nix file to work with ghcjs

commitc3b5d55afddc36f99e13ffa379b18901eade60d0 authorHamish Mackenzie <Hamish.K.Mackenzie@googlemail.com> dateSun 3 Dec 2017, 20:11 (9 years ago) parent075d1a055a9e5a
1 file changed+10−6
jsaddle/default.nix+10−6
jsaddle/default.nix+10−6
@@ -2,18 +2,22 @@
22, bytestring, containers, deepseq, filepath, ghc-prim, http-types
33, lens, primitive, process, random, ref-tf, scientific, stdenv, stm
44, text, time, transformers, unordered-containers, unliftio-core
5−, vector
5+, vector, exceptions, ghcjs-base, ghcjs-prim, ghc
66}:
77mkDerivation {
88 pname = "jsaddle";
99 version = "0.9.4.0";
1010 src = builtins.filterSource (path: type: !(builtins.elem (baseNameOf path) [ ".git" "dist" ])) ./.;
1111 libraryHaskellDepends = [
12− aeson attoparsec base base64-bytestring bytestring containers
13− deepseq filepath ghc-prim http-types lens primitive process random
14− ref-tf scientific stm text time transformers unordered-containers
15− unliftio-core vector
16− ];
12+ aeson base base64-bytestring bytestring exceptions lens primitive
13+ text transformers
14+ ] ++ (if ghc.isGhcjs or false then [
15+ ghcjs-base ghcjs-prim
16+ ] else [
17+ attoparsec containers deepseq filepath ghc-prim http-types process
18+ random ref-tf scientific stm time unordered-containers vector
19+ unliftio-core
20+ ]);
1721 description = "Interface for JavaScript that works with GHCJS and GHC";
1822 license = stdenv.lib.licenses.mit;
1923}