Commit graph

24 commits

Author SHA1 Message Date
Charles Strahan
df55381b65 ghcjs: restructure 2014-12-31 00:03:43 -05:00
Charles Strahan
83d58831bc ghcjs: update revisions 2014-12-27 19:51:21 -05:00
Charles Strahan
dcee26642c ghcjs: remove commented-out ghcjs-prim 2014-12-27 18:53:23 -05:00
Charles Strahan
347a9674c1 ghcjs: cleanup 2014-12-27 18:48:12 -05:00
Charles Strahan
f36fabb389 ghcjs: fix build 2014-12-27 16:51:39 -05:00
Charles Strahan
571af5b988 ghcjs: clean up 2014-12-27 14:27:37 -05:00
Charles Strahan
3d821e0013 update ghcjs 2014-12-24 21:58:45 -05:00
Charles Strahan
fb59151109 purify ghcjs 2014-12-11 20:56:41 -05:00
Bas van Dijk
841a98e081 Update Cabal-ghcjs and ghcjs-boot 2014-12-01 11:53:38 +01:00
Bas van Dijk
f16e4508f4 Use optparse-applicative-0.11.0.1 in ghcjs 2014-11-30 18:08:28 +01:00
Bas van Dijk
1af6e5037b Update ghcjs 2014-11-30 10:12:35 +01:00
Ryan Trinkle
ed6bfa2318 Update ghcjs 2014-11-17 01:08:11 -05:00
Ryan Trinkle
aa71f5ff77 Update ghcjs 2014-10-09 10:54:27 -04:00
Ryan Trinkle
9ec240605d Use optparse-applicative 0.9.1.1; 0.10 doesn't export 'reader', which causes ghcjs to fail to build 2014-10-07 21:34:31 -04:00
Ryan Trinkle
68648f5581 Merge branch 'ghcjs-old' into HEAD
Conflicts:
	pkgs/development/tools/haskell/ghcjs/default.nix
2014-08-30 16:30:58 -04:00
Ryan Trinkle
ebf364acfc Fix ca-bundle.crt file location. 2014-08-27 13:39:04 -04:00
Ryan Trinkle
81a5395c23 Ensure regex-posix is available to build ghcjs even if tests are disabled. 2014-08-27 12:27:42 -04:00
Ryan Trinkle
4394858433 Integrate ghcjs
Use nixpkgs.haskellPackages_ghcjs to build packages with ghcjs.
2014-08-26 13:35:29 -04:00
Ryan Trinkle
1c9166f649 Factor out ghcjs's libdir better. 2014-08-25 18:46:52 -04:00
Ryan Trinkle
983af4a921 Use variables for ca-bundle.crt and GHCJS_LIBDIR. 2014-08-25 18:17:18 -04:00
Ryan Trinkle
6142b27760 ghcjs working. 2014-08-23 15:00:13 -04:00
Ryan Trinkle
50275ff2ee Make the version number match the cabal file's version number.
This is necessary because otherwise the linker flags given at pkgs/build-support/cabal/default.nix:201-203 are ineffective, which causes the built binary to be unable to find its .so file at runtime.  This appears to only affect executables that are built in the same cabal package as the library they require.
2014-07-05 17:08:41 -04:00
Ryan Trinkle
4e7aa4be87 Make ghcjs build.
Note: In order to run ghcjs, you must set LD_LIBRARY_PATH=${ghcjs}/lib/ghc-7.8.2/ghcjs-0.1.0:$LD_LIBRARY_PATH so that it can find libHSghcjs-0.1.0-ghc7.8.2.so

* ghcjs itself (as opposed to ghcjs-built libraries) must be built with the non-ghcjs version of cabal.  I'm not sure whether this is strictly necessary, but it prevented an error.
* CabalGhcjs and cabalInstallGhcjs must be explicitly provided to ghcjs-boot
* Since ghcjs-boot writes to its home directory, we set the home directory to our working directory
* To enable ghcjs-boot to find a particular .h file, we must create a symlink in ghcjs-boot/boot to its parent directory
* gmp must be provided.  Adding it to the LD_LIBRARY_PATH is necessary, but I am not sure whether the uses in buildDepends and the arguments to ghcjs-boot are necessary
* If ghcjs-boot cannot find the shims package, it will attempt (and fail) to download it, so we must put it in place ahead of time
2014-06-30 00:49:35 -04:00
John Wiegley
e0b2950168 Initial work on ghcjs 2014-06-28 21:46:35 -07:00