From 569554348244dfc8755a5b6529064b19a6cce218 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Thu, 13 Mar 2008 22:55:18 +0000 Subject: added 2 repos and renamed ghc_68_extra to ghc68extraLibs svn path=/nixpkgs/trunk/; revision=11109 --- .../misc/bleeding-edge-repos/default.nix | 3 + pkgs/misc/ghc68_extra_libs/default.nix | 267 --------------------- pkgs/misc/ghc68_extra_libs/hdbc_postgresql_patch | 10 - pkgs/misc/ghc68_extra_libs/takusen_setup_patch | 51 ---- pkgs/misc/ghc68extraLibs/default.nix | 267 +++++++++++++++++++++ pkgs/misc/ghc68extraLibs/hdbc_postgresql_patch | 10 + pkgs/misc/ghc68extraLibs/takusen_setup_patch | 51 ++++ pkgs/top-level/all-packages.nix | 10 +- 8 files changed, 336 insertions(+), 333 deletions(-) delete mode 100644 pkgs/misc/ghc68_extra_libs/default.nix delete mode 100644 pkgs/misc/ghc68_extra_libs/hdbc_postgresql_patch delete mode 100644 pkgs/misc/ghc68_extra_libs/takusen_setup_patch create mode 100644 pkgs/misc/ghc68extraLibs/default.nix create mode 100644 pkgs/misc/ghc68extraLibs/hdbc_postgresql_patch create mode 100644 pkgs/misc/ghc68extraLibs/takusen_setup_patch (limited to 'pkgs') diff --git a/pkgs/development/misc/bleeding-edge-repos/default.nix b/pkgs/development/misc/bleeding-edge-repos/default.nix index 9b0aa1c23566..5f827736a9ba 100644 --- a/pkgs/development/misc/bleeding-edge-repos/default.nix +++ b/pkgs/development/misc/bleeding-edge-repos/default.nix @@ -45,6 +45,9 @@ args: happs_plugins = { type="darcs"; url=http://happs.org/repos/HAppS-Plugins; groups="happs"; }; happs_ixset = { type="darcs"; url=http://happs.org/repos/HAppS-IxSet; groups="happs"; }; happs_server = { type="darcs"; url=http://happs.org/repos/HAppS-HTTP; groups="happs"; }; + takusen = { type="darcs"; url=http://darcs.haskell.org/takusen/; }; + cabal = { type="darcs"; url=http://darcs.haskell.org/cabal; }; + # git repositories hypertable = { type="git"; url="git://scm.hypertable.org/pub/repos/hypertable.git"; groups=""; }; diff --git a/pkgs/misc/ghc68_extra_libs/default.nix b/pkgs/misc/ghc68_extra_libs/default.nix deleted file mode 100644 index 0f2da28de4ec..000000000000 --- a/pkgs/misc/ghc68_extra_libs/default.nix +++ /dev/null @@ -1,267 +0,0 @@ -# contains libraries and maybe applications in the future. That's why I'm putting it into misc. Feel free to move it somewhere else -args : ghc: with args; - -rec { - # name (using lowercase letters everywhere because using installing packages having different capitalization is discouraged) - this way there is not that much to remember? - - cabal_darcs_name = "cabal-darcs"; - - # introducing p here to speed things up. - # It merges derivations (defined below) and additional inputs. I hope that using as few nix functions as possible results in greates speed? - # unfortunately with x; won't work because it forces nix to evaluate all attributes of x which would lead to infinite recursion - pkgs = let x = ghc.core_libs // derivations; - inherit (bleedingEdgeRepos) sourceByName; - in { - # ghc extra packages - mtl = { name="mtl-1.1.0.0"; srcDir="libraries/mtl"; p_deps=[ x.base ]; src = ghc.extra_src; }; - parsec = { name="parsec-2.1.0.0"; srcDir="libraries/parsec"; p_deps=[ x.base ]; src = ghc.extra_src; }; - network = { name="network-2.1.0.0"; srcDir="libraries/network"; p_deps=[ x.base x.parsec x.haskell98 ]; src = ghc.extra_src; }; - regex_base = { name="regex-base-0.72.0.1"; srcDir="libraries/regex-base"; p_deps=[ x.base x.array x.bytestring x.haskell98 ]; src = ghc.extra_src; }; - regex_posix = { name="regex-posix-0.72.0.2"; srcDir="libraries/regex-posix"; p_deps=[ x.regex_base x.haskell98 ]; src = ghc.extra_src; }; - regex_compat = { name="regex-compat-0.71.0.1"; srcDir="libraries/regex-compat"; p_deps=[ x.base x.regex_posix x.regex_base x.haskell98 ]; src = ghc.extra_src; }; - stm = { name="stm-2.1.1.0"; srcDir="libraries/stm"; p_deps=[ x.base x.array ]; src = ghc.extra_src; }; - hunit = { name="HUnit-1.2.0.0"; srcDir="libraries/HUnit"; p_deps=[ x.base ]; src = ghc.extra_src; }; - quickcheck = { name="QuickCheck-1.1.0.0"; srcDir="libraries/QuickCheck"; p_deps=[x.base x.random]; src = ghc.extra_src; }; - - - # other pacakges (hackage etc) - binary = rec { name = "binary-0.4.1"; p_deps = [ x.base x.bytestring x.containers x.array ]; - src = fetchurl { url = "http://hackage.haskell.org/packages/archive/binary/0.4.1/binary-0.4.1.tar.gz"; - sha256 = "0jg5i1k5fz0xp1piaaf5bzhagqvfl3i73hlpdmgs4gc40r1q4x5v"; }; - }; - # using different name to not clash with postgresql - postgresql_bindings = rec { name = "PostgreSQL-0.2"; p_deps = [x.base x.mtl postgresql x.haskell98]; - src = fetchurl { url = "http://hackage.haskell.org/packages/archive/PostgreSQL/0.2/PostgreSQL-0.2.tar.gz"; - sha256 = "0p5q3yc8ymgzzlc600h4mb9w86ncrgjdbpqfi49b2jqvkcx5bwrr"; }; - pass = { - inherit postgresql; - patchPhase = "echo 'extensions: MultiParamTypeClasses ForeignFunctionInterface EmptyDataDecls GeneralizedNewtypeDeriving FlexibleInstances UndecidableInstances' >> PostgreSQL.cabal - echo \"extra-lib-dirs: \$postgresql/lib\" >> PostgreSQL.cabal - echo \"extra-libraries: pq\" >> PostgreSQL.cabal - "; - - }; - }; - #wash = rec { name = "WashNGo-2.12"; p_deps = [x.base x.mtl x.haskell98 ]; - # src = fetchurl { url = "http://www.informatik.uni-freiburg.de/~thiemann/WASH/WashNGo-2.12.tgz"; - # sha256 = "1dyc2062jpl3xdlm0n7xkz620h060g2i5ghnb32cn95brcj9fgrz"; }; - # patches = ../misc/WASHNGo_Patch_ghc682; - # }; - - hsql = rec { name = "hsql-1.7"; p_deps = [x.base x.mtl x.haskell98 x.old_time ]; - src = fetchurl { url = "http://hackage.haskell.org/packages/archive/hsql/1.7/hsql-1.7.tar.gz"; - sha256 = "0j2lkvg5c0x5gf2sy7zmmgrda0c3l73i9d6hyka2f15d5n1rfjc9"; }; - pass = { patchPhase = " - sed -e 's=build-depends:.*=build-depends: base, old-locale, old-time=' -i hsql.cabal - echo \"extensions: - ForeignFunctionInterface, TypeSynonymInstances, CPP, ExistentialQuantification, GeneralizedNewtypeDeriving, PatternSignatures, ScopedTypeVariables, Rank2Types, DeriveDataTypeable \" >> hsql.cabal - "; }; - }; - - #hsql_postgresql = rec { name = "hsql-postgresql-1.7"; p_deps = [ x.base x.mtl x.haskell98 x.old_time x.hsql postgresql ]; - # src = fetchurl { url = ""; - # sha256 = "180c8acp4p9hsl5h8ryhhli9mlqcmcfjqaxzr7sa074gpzq29vfc"; }; - # pass = { patchPhase = " - # sed -e 's=build-depends:.*=build-depends: base, old-locale, old-time=' -i hsql.cabal - # echo \"extensions: - # ForeignFunctionInterface, TypeSynonymInstances, CPP, ExistentialQuantification, GeneralizedNewtypeDeriving, PatternSignatures, ScopedTypeVariables, Rank2Types, DeriveDataTypeable \" >> hsql.cabal - # "; }; - # }; - # I'm getting a glibc error when compiling - where does it come from ? - takusen = rec { name = "takusen-0.8"; p_deps = [ x.base x.mtl x.haskell98 x.time postgresql sqlite ]; - src = sourceByName "takusen"; - pass = { - inherit postgresql sqlite; - patch = ./takusen_setup_patch; - # no ODBC, Oracle support in nix - patchPhase = "patch -p1 Setup.hs < \$patch - sed -e '/ODBC/d' -i Takusen.cabal - sed -e '/Oracle/d' -i Takusen.cabal - sed -e \"s=pg_path=\$postgresql=\" -e \"s=sqlite_path=\$sqlite=\" -i Setup.hs - "; - }; - }; - hdbc = rec { name = "hdbc-1.1.4.0"; p_deps = [ x.base x.mtl x.haskell98 x.time x.bytestring postgresql sqlite ]; - src = fetchurl { - url = http://software.complete.org/hdbc/static/download_area/1.1.4.0/hdbc_1.1.4.0.tar.gz; - sha256 = "677e789094e3790be2462331b6c0f97b4ac1d65c8eb98cf7d8b83d5f3f9fbd39"; - }; - pass = { - inherit postgresql sqlite; - #patch = ./takusen_setup_patch; - # no ODBC, Oracle support in nix - #patchPhase = "patch -p1 Setup.hs < \$patch - # sed -e '/ODBC/d' -i Takusen.cabal - # sed -e '/Oracle/d' -i Takusen.cabal - # sed -e \"s=pg_path=\$postgresql=\" -e \"s=sqlite_path=\$sqlite=\" -i Setup.hs - # "; - }; - }; - hdbc_postgresql = { name = "hdbc-postgresql"; p_deps = [ x.hdbc x.parsec postgresql ]; - src = fetchurl { - url = http://hackage.haskell.org/packages/archive/HDBC-postgresql/1.1.4.0/HDBC-postgresql-1.1.4.0.tar.gz; - sha256 = "1b9lxj55jvvq76ll8dr4kfb6aj7r0baj4gh8wkhgwc1kd41sx7h3"; }; - pass = { - patches = [ ./hdbc_postgresql_patch ]; - patchPhase = "unset patchPhase; patchPhase; - sed -e '/Cabal-Ver/d' -i HDBC-postgresql.cabal"; - }; - }; - - gtk2hs = rec { name = "gtk2hs-0.9.12.1"; p_deps = [ x.haskell98 x.mtl x.bytestring pkgconfig ] ++ (with gtkLibs; [ glib pango gtk gnome.glib]); - src = fetchurl { - url = "http://downloads.sourceforge.net/gtk2hs/${name}.tar.gz"; - sha256 = "110z6v9gzhg6nzlz5gs8aafmipbva6rc50b8z1jgq0k2g25hfy22"; }; - pass = { - buildPhase = " - createEmptyPackageDatabaseAndSetupHook - export GHC_PACKAGE_PATH - ./configure --prefix=\$out --with-user-pkgconf=local-pkg-db --with-pkgconf=\$PACKAGE_DB - make - ensureDir \$out - make install - "; - }; - }; - #wxhaskell = rec { name = "wxhaskel-0.9.4-1"; p_deps = [ x.haskell98 x.mtl x.bytestring pkgconfig wxGTK ] ++ (with gtkLibs; [ glib pango gtk gnome.glib]); - # src = fetchurl { - # url = "http://prdownloads.sourceforge.net/wxhaskell/wxhaskell-src-0.9.4-1.zip"; - # sha256 = "0x6mjly7fxkxgzcl9znhzhik4h88rc56zl8diw5ihf48dcvby8wl"; }; - # pass = { - # buildInputs = [ unzip ]; - # buildPhase = " - # createEmptyPackageDatabaseAndSetupHook - # export GHC_PACKAGE_PATH - # ./configure --prefix=\$out --package-conf=\$PACKAGE_DB - # make - # ensureDir \$out - # make install - # "; - # }; - # }; - - /* - askelldb-hsql-postgresql-0.10.tar.gz -######################################################################## 100.0% - hash is 00nva5hhaknm5via4c1p2wj7ibyn6q874f0c3izjb9dk7rivfvgv - path is /nix/store/9n86rzpn0c4zyb7wpilpfcpkfnq68fch-haskelldb-hsql-postgresql-0.10.tar.gz - 00nva5hhaknm5via4c1p2wj7ibyn6q874f0c3izjb9dk7rivfvgv - */ - - - # 1.13 is stable. There are more recent non stable versions - haxml = rec { name = "HaXml-1.13.3"; p_deps = [ x.base x.rts x.directory x.process x.pretty x.containers x.filepath x.haskell98 ]; - src = fetchurl { url = "http://www.haskell.org/HaXml/${name}.tar.gz"; - sha256 = "08d9wy0rg9m66dd10x0zvkl74l25vxdakz7xp3j88s2gd31jp1v0"; }; - }; - xhtml = rec { name = "xhtml-3000.0.2.2"; p_deps = [ x.base ]; - src = fetchurl { url = "http://hackage.haskell.org/packages/archive/xhtml/3000.0.2.2/xhtml-3000.0.2.2.tar.gz"; - sha256 = "112mbq26ksh7r22y09h0xvm347kba3p4ns12vj5498fqqj333878"; }; - }; - html = rec { name = "html-1.0.1.1"; p_deps = [ x.base ]; - src = fetchurl { url = "http://hackage.haskell.org/packages/archive/html/1.0.1.1/html-1.0.1.1.tar.gz"; - sha256 = "10fayfm18p83zlkr9ikxlqgnzxg1ckdqaqvz6wp1xj95fy3p6yl1"; }; - }; - crypto = rec { name = "crypto-4.1.0"; p_deps = [ x.base x.array x.pretty x.quickcheck x.random x.hunit ]; - src = fetchurl { url = "http://hackage.haskell.org/packages/archive/Crypto/4.1.0/Crypto-4.1.0.tar.gz"; - sha256 = "13rbpbn6p1da6qa9m6f7dmkzdkmpnx6jiyyndzaz99nzqlrwi109"; }; - }; - hslogger = rec { name = "hslogger-1.0.4"; p_deps = [ x.containers x.directory x.mtl x.network x.process]; - src = fetchurl { url = "http://hackage.haskell.org/packages/archive/hslogger/1.0.4/hslogger-1.0.4.tar.gz"; - sha256 = "0kmz8xs1q41rg2xwk22fadyhxdg5mizhw0r4d74y43akkjwj96ar"; }; - }; - parsep = { name = "parsep-0.1"; p_deps = [ x.base x.mtl x.bytestring ]; - src = fetchurl { url = "http://twan.home.fmf.nl/parsep/parsep-0.1.tar.gz"; - sha256 = "1y5pbs5mzaa21127cixsamahlbvmqzyhzpwh6x0nznsgmg2dpc9q"; }; - pass = { patchPhase = "sed -i 's/fps/bytestring/' *.cabal"; }; - }; - time = { name = "time-1.1.2.0"; p_deps = [ x.base x.old_locale ]; - src = fetchurl { url = "http://hackage.haskell.org/packages/archive/time/1.1.2.0/time-1.1.2.0.tar.gz"; - sha256 = "0zm4qqczwbqzy2pk7wz5p1virgylwyzd9zxp0406s5zvp35gvl89"; }; - }; - rjson = { name = "RJson-0.3.3"; p_deps = [ x.base x.mtl x.parsec x.bytestring x.iconv x.array x.containers x.syb_with_class_darcs ]; - src = fetchurl { url = http://hackage.haskell.org/packages/archive/RJson/0.3.3/RJson-0.3.3.tar.gz; - sha256 = "0va1rbgjb8m3rij02318a31bi9gmy3zwyx5z12164c7iwafnd5v2"; }; - }; - iconv = { name = "iconv-0.4"; p_deps = [ x.base x.bytestring ]; - src = fetchurl { url = http://hackage.haskell.org/packages/archive/iconv/0.4/iconv-0.4.tar.gz; - sha256 = "1snqzz7hi2qa83m5v3098rsldb485kz2jggd335qhvjahcp4bj1p"; }; - }; - - # HAPPS - Libraries - http_darcs = { name="http-darcs"; p_deps = [x.network x.parsec]; - src = sourceByName "http"; - #src = fetchdarcs { url = "http://darcs.haskell.org/http/"; md5 = "4475f858cf94f4551b77963d08d7257c"; }; - }; - syb_with_class_darcs = { name="syb-with-class-darcs"; p_deps = [x.template_haskell x.bytestring ]; - src = - # fetchdarcs { url = "http://happs.org/HAppS/syb-with-class"; md5 = "b42336907f7bfef8bea73bc36282d6ac"; }; - sourceByName "syb_with_class"; # { url = "http://happs.org/HAppS/syb-with-class"; md5 = "b42336907f7bfef8bea73bc36282d6ac"; }; - }; - - happs_data_darcs = { name="HAppS-Data-darcs"; p_deps=[ x.base x.mtl x.template_haskell x.syb_with_class_darcs x.haxml x.happs_util_darcs x.regex_compat x.bytestring x.pretty x.binary ]; - src = sourceByName "happs_data"; # fetchdarcs { url = "http://happs.org/repos/HAppS-Data"; md5 = "10c505dd687e9dc999cb187090af9ba7"; }; - }; - happs_util_darcs = { name="HAppS-Util-darcs"; p_deps=[ x.base x.mtl x.hslogger x.template_haskell x.array x.bytestring x.old_time x.process x.directory ]; - src = sourceByName "happs_util"; # fetchdarcs { url = "http://happs.org/repos/HAppS-Util"; md5 = "693cb79017e522031c307ee5e59fc250"; }; - }; - - happs_state_darcs = { name="HAppS-State-darcs"; p_deps=[ x.base x.haxml - x.mtl x.network x.stm x.template_haskell x.hslogger - x.happs_util_darcs x.happs_data_darcs x.bytestring x.containers - x.random x.old_time x.old_locale x.unix x.directory x.binary ]; - src = sourceByName "happs_state"; - #src = fetchdarcs { url = "http://happs.org/repos/HAppS-State"; - # md5 = "956e5c293b60f4a98148fedc5fa38acc"; - # }; - }; -# happs_plugins_darcs = { name="HAppS-plugins-darcs"; p_deps=[ x.base x.mtl x.hslogger x.happs_util_darcs x.happs_data_darcs x.happs_state_darcs x.containers ]; -#[>src = fetchdarcs { url = "http://happs.org/repos/HAppS-Plugins"; md5 = "693cb79017e522031c307ee5e59fc250"; }; -# src = bleedingEdgeRepos.sourceByName "happs_plugins"; -# }; - # there is no .cabal yet - #happs_smtp_darcs = { name="HAppS-smtp-darcs"; p_deps=[]; - #src = fetchdarcs { url = "http://happs.org/repos/HAppS-smtp"; md5 = "5316917e271ea1ed8ad261080bcb47db"; }; - #}; - - happs_ixset_darcs = { name="HAppS-IxSet-darcs"; p_deps=[ x.base x.mtl - x.hslogger x.happs_util_darcs x.happs_state_darcs x.happs_data_darcs - x.template_haskell x.syb_with_class_darcs x.containers ]; - src = sourceByName "happs_ixset"; - #src = fetchdarcs { url = "http://happs.org/repos/HAppS-IxSet"; - #md5 = "fa6b24517f09aa16e972f087430967fd"; - #tag = "0.9.2"; - # no tag - #md5 = "fa6b24517f09aa16e972f087430967fd"; - #}; - }; - happs_server_darcs = { name="HAppS-Server-darcs"; p_deps=[x.haxml x.parsec x.mtl - x.network x.regex_compat x.hslogger x.happs_data_darcs - x.happs_util_darcs x.happs_state_darcs x.happs_ixset_darcs x.http_darcs - x.template_haskell x.xhtml x.html x.bytestring x.random - x.containers x.old_time x.old_locale x.directory x.unix]; - #src = fetchdarcs { url = "http://happs.org/repos/HAppS-HTTP"; md5 = "e1bb17eb30a39d30b8c34dffbf80edc2"; }; - src = sourceByName "happs_server"; - }; - # we need recent version of cabal (because only this supports --pkg-config properly) Thu Feb 7 14:54:07 CET 2008 - # cabal_darcs is added to propagatedBuildInputs automatically below - cabal_darcs = - { name=cabal_darcs_name; p_deps = with ghc.core_libs; [base rts directory process pretty containers filepath]; - src = sourceByName "cabal"; - #fetchdarcs { url = "http://darcs.haskell.org/cabal"; md5 = "8b0bc3c7f2676ce642f98b1568794cd6"; }; - }; - }; - #srcs_only = let x = pkgs; in map (y : y.src ) [ x.happs_util_darcs x.happs_data_darcs x.syb_with_class_darcs x.http_darcs - # x.happs_server_darcs x.happs_ixset_darcs x.happs_plugins_darcs x.happs_server_darcs ]; - toDerivation = attrs : with attrs; - # result is { mtl = ; - addHasktagsTaggingInfo (ghcCabalDerivation { - inherit (attrs) name src; - propagatedBuildInputs = p_deps ++ (lib.optional (attrs.name != cabal_darcs_name) derivations.cabal_darcs ); - srcDir = if attrs ? srcDir then attrs.srcDir else "."; - # add cabal, take deps either from this list or from ghc.core_libs - pass = if attrs ? pass then attrs.pass else {}; - }); - derivations = with lib; builtins.listToAttrs (lib.concatLists ( lib.mapRecordFlatten - ( n : attrs : let d = (toDerivation attrs); in [ (nv n d) (nv attrs.name d) ] ) pkgs ) ); - }.derivations diff --git a/pkgs/misc/ghc68_extra_libs/hdbc_postgresql_patch b/pkgs/misc/ghc68_extra_libs/hdbc_postgresql_patch deleted file mode 100644 index 75df73ae94b5..000000000000 --- a/pkgs/misc/ghc68_extra_libs/hdbc_postgresql_patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/Setup.lhs 2008-03-12 08:47:46.000000000 +0100 -+++ b/Setup.lhs 2008-03-12 08:46:39.000000000 +0100 -@@ -2,7 +2,8 @@ - - \begin{code} - import Distribution.PackageDescription -+import Distribution.PackageDescription.Parse - import Distribution.Simple - import Distribution.Simple.LocalBuildInfo - import Distribution.Simple.Program diff --git a/pkgs/misc/ghc68_extra_libs/takusen_setup_patch b/pkgs/misc/ghc68_extra_libs/takusen_setup_patch deleted file mode 100644 index baa318de5568..000000000000 --- a/pkgs/misc/ghc68_extra_libs/takusen_setup_patch +++ /dev/null @@ -1,51 +0,0 @@ ---- orig/Setup.hs 2008-03-11 16:35:54.000000000 +0100 -+++ mod/Setup.hs 2008-03-11 16:45:16.000000000 +0100 -@@ -1,3 +1,4 @@ -+-- packages:HAppS-Server,mtl,HAppS-Data,HAppS-State,mtl,process,filepath,Cabal,directory - -- #!/usr/bin/env runhaskell - - {-# OPTIONS -cpp #-} -@@ -8,12 +9,13 @@ - import Control.Exception (bracket) - import Control.Monad (when) - import Data.List (isPrefixOf, unionBy) -+import Distribution.PackageDescription.Parse (writeHookedBuildInfo) - import Distribution.PackageDescription - ( PackageDescription(..), Library(..), BuildInfo(..), HookedBuildInfo -- , emptyHookedBuildInfo, writeHookedBuildInfo, emptyBuildInfo, hasLibs -+ , emptyHookedBuildInfo, emptyBuildInfo, hasLibs - ) - import Distribution.Simple.Setup -- ( --Flag, fromFlag, toFlag -- ( ConfigFlags(..), BuildFlags(..) -+ ( fromFlag, Flag(..), ConfigFlags(..), BuildFlags(..) - , InstallFlags(..), HaddockFlags(..) - , CopyFlags(..) - , RegisterFlags(..), emptyRegisterFlags -@@ -78,11 +80,16 @@ - preConf args flags = do - try (removeFile "takusen.buildinfo") - return emptyHookedBuildInfo -+ conf libName path = (Just emptyBuildInfo { -+ extraLibs = [libName] -+ , extraLibDirs = [ path ++ "/lib" ] -+ , includeDirs = [ path ++ "/include" ] -+ }) - postConf :: Args -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO () - postConf args flags _ localbuildinfo = do - let verbose = (configVerbose flags) -- sqliteBI <- configSqlite3 verbose -- pgBI <- configPG verbose -+ let sqliteBI = conf "sqlite3" "sqlite_path" -+ let pgBI = conf "pq" "pg_path" - oraBI <- configOracle verbose - odbcBI <- configOdbc verbose - let bis = [sqliteBI, pgBI, oraBI, odbcBI] -@@ -99,7 +106,7 @@ - defaultInstallHook :: PackageDescription -> LocalBuildInfo - -> UserHooks -> InstallFlags -> IO () - defaultInstallHook pkg_descr localbuildinfo _ (InstallFlags uInstFlag verbosity) = do -- install pkg_descr localbuildinfo (CopyFlags NoCopyDest verbosity) -+ install pkg_descr localbuildinfo (CopyFlags (Flag NoCopyDest) verbosity) - when (hasLibs pkg_descr) $ - register pkg_descr localbuildinfo - emptyRegisterFlags{ regPackageDB=uInstFlag, regVerbose=verbosity } diff --git a/pkgs/misc/ghc68extraLibs/default.nix b/pkgs/misc/ghc68extraLibs/default.nix new file mode 100644 index 000000000000..0f2da28de4ec --- /dev/null +++ b/pkgs/misc/ghc68extraLibs/default.nix @@ -0,0 +1,267 @@ +# contains libraries and maybe applications in the future. That's why I'm putting it into misc. Feel free to move it somewhere else +args : ghc: with args; + +rec { + # name (using lowercase letters everywhere because using installing packages having different capitalization is discouraged) - this way there is not that much to remember? + + cabal_darcs_name = "cabal-darcs"; + + # introducing p here to speed things up. + # It merges derivations (defined below) and additional inputs. I hope that using as few nix functions as possible results in greates speed? + # unfortunately with x; won't work because it forces nix to evaluate all attributes of x which would lead to infinite recursion + pkgs = let x = ghc.core_libs // derivations; + inherit (bleedingEdgeRepos) sourceByName; + in { + # ghc extra packages + mtl = { name="mtl-1.1.0.0"; srcDir="libraries/mtl"; p_deps=[ x.base ]; src = ghc.extra_src; }; + parsec = { name="parsec-2.1.0.0"; srcDir="libraries/parsec"; p_deps=[ x.base ]; src = ghc.extra_src; }; + network = { name="network-2.1.0.0"; srcDir="libraries/network"; p_deps=[ x.base x.parsec x.haskell98 ]; src = ghc.extra_src; }; + regex_base = { name="regex-base-0.72.0.1"; srcDir="libraries/regex-base"; p_deps=[ x.base x.array x.bytestring x.haskell98 ]; src = ghc.extra_src; }; + regex_posix = { name="regex-posix-0.72.0.2"; srcDir="libraries/regex-posix"; p_deps=[ x.regex_base x.haskell98 ]; src = ghc.extra_src; }; + regex_compat = { name="regex-compat-0.71.0.1"; srcDir="libraries/regex-compat"; p_deps=[ x.base x.regex_posix x.regex_base x.haskell98 ]; src = ghc.extra_src; }; + stm = { name="stm-2.1.1.0"; srcDir="libraries/stm"; p_deps=[ x.base x.array ]; src = ghc.extra_src; }; + hunit = { name="HUnit-1.2.0.0"; srcDir="libraries/HUnit"; p_deps=[ x.base ]; src = ghc.extra_src; }; + quickcheck = { name="QuickCheck-1.1.0.0"; srcDir="libraries/QuickCheck"; p_deps=[x.base x.random]; src = ghc.extra_src; }; + + + # other pacakges (hackage etc) + binary = rec { name = "binary-0.4.1"; p_deps = [ x.base x.bytestring x.containers x.array ]; + src = fetchurl { url = "http://hackage.haskell.org/packages/archive/binary/0.4.1/binary-0.4.1.tar.gz"; + sha256 = "0jg5i1k5fz0xp1piaaf5bzhagqvfl3i73hlpdmgs4gc40r1q4x5v"; }; + }; + # using different name to not clash with postgresql + postgresql_bindings = rec { name = "PostgreSQL-0.2"; p_deps = [x.base x.mtl postgresql x.haskell98]; + src = fetchurl { url = "http://hackage.haskell.org/packages/archive/PostgreSQL/0.2/PostgreSQL-0.2.tar.gz"; + sha256 = "0p5q3yc8ymgzzlc600h4mb9w86ncrgjdbpqfi49b2jqvkcx5bwrr"; }; + pass = { + inherit postgresql; + patchPhase = "echo 'extensions: MultiParamTypeClasses ForeignFunctionInterface EmptyDataDecls GeneralizedNewtypeDeriving FlexibleInstances UndecidableInstances' >> PostgreSQL.cabal + echo \"extra-lib-dirs: \$postgresql/lib\" >> PostgreSQL.cabal + echo \"extra-libraries: pq\" >> PostgreSQL.cabal + "; + + }; + }; + #wash = rec { name = "WashNGo-2.12"; p_deps = [x.base x.mtl x.haskell98 ]; + # src = fetchurl { url = "http://www.informatik.uni-freiburg.de/~thiemann/WASH/WashNGo-2.12.tgz"; + # sha256 = "1dyc2062jpl3xdlm0n7xkz620h060g2i5ghnb32cn95brcj9fgrz"; }; + # patches = ../misc/WASHNGo_Patch_ghc682; + # }; + + hsql = rec { name = "hsql-1.7"; p_deps = [x.base x.mtl x.haskell98 x.old_time ]; + src = fetchurl { url = "http://hackage.haskell.org/packages/archive/hsql/1.7/hsql-1.7.tar.gz"; + sha256 = "0j2lkvg5c0x5gf2sy7zmmgrda0c3l73i9d6hyka2f15d5n1rfjc9"; }; + pass = { patchPhase = " + sed -e 's=build-depends:.*=build-depends: base, old-locale, old-time=' -i hsql.cabal + echo \"extensions: + ForeignFunctionInterface, TypeSynonymInstances, CPP, ExistentialQuantification, GeneralizedNewtypeDeriving, PatternSignatures, ScopedTypeVariables, Rank2Types, DeriveDataTypeable \" >> hsql.cabal + "; }; + }; + + #hsql_postgresql = rec { name = "hsql-postgresql-1.7"; p_deps = [ x.base x.mtl x.haskell98 x.old_time x.hsql postgresql ]; + # src = fetchurl { url = ""; + # sha256 = "180c8acp4p9hsl5h8ryhhli9mlqcmcfjqaxzr7sa074gpzq29vfc"; }; + # pass = { patchPhase = " + # sed -e 's=build-depends:.*=build-depends: base, old-locale, old-time=' -i hsql.cabal + # echo \"extensions: + # ForeignFunctionInterface, TypeSynonymInstances, CPP, ExistentialQuantification, GeneralizedNewtypeDeriving, PatternSignatures, ScopedTypeVariables, Rank2Types, DeriveDataTypeable \" >> hsql.cabal + # "; }; + # }; + # I'm getting a glibc error when compiling - where does it come from ? + takusen = rec { name = "takusen-0.8"; p_deps = [ x.base x.mtl x.haskell98 x.time postgresql sqlite ]; + src = sourceByName "takusen"; + pass = { + inherit postgresql sqlite; + patch = ./takusen_setup_patch; + # no ODBC, Oracle support in nix + patchPhase = "patch -p1 Setup.hs < \$patch + sed -e '/ODBC/d' -i Takusen.cabal + sed -e '/Oracle/d' -i Takusen.cabal + sed -e \"s=pg_path=\$postgresql=\" -e \"s=sqlite_path=\$sqlite=\" -i Setup.hs + "; + }; + }; + hdbc = rec { name = "hdbc-1.1.4.0"; p_deps = [ x.base x.mtl x.haskell98 x.time x.bytestring postgresql sqlite ]; + src = fetchurl { + url = http://software.complete.org/hdbc/static/download_area/1.1.4.0/hdbc_1.1.4.0.tar.gz; + sha256 = "677e789094e3790be2462331b6c0f97b4ac1d65c8eb98cf7d8b83d5f3f9fbd39"; + }; + pass = { + inherit postgresql sqlite; + #patch = ./takusen_setup_patch; + # no ODBC, Oracle support in nix + #patchPhase = "patch -p1 Setup.hs < \$patch + # sed -e '/ODBC/d' -i Takusen.cabal + # sed -e '/Oracle/d' -i Takusen.cabal + # sed -e \"s=pg_path=\$postgresql=\" -e \"s=sqlite_path=\$sqlite=\" -i Setup.hs + # "; + }; + }; + hdbc_postgresql = { name = "hdbc-postgresql"; p_deps = [ x.hdbc x.parsec postgresql ]; + src = fetchurl { + url = http://hackage.haskell.org/packages/archive/HDBC-postgresql/1.1.4.0/HDBC-postgresql-1.1.4.0.tar.gz; + sha256 = "1b9lxj55jvvq76ll8dr4kfb6aj7r0baj4gh8wkhgwc1kd41sx7h3"; }; + pass = { + patches = [ ./hdbc_postgresql_patch ]; + patchPhase = "unset patchPhase; patchPhase; + sed -e '/Cabal-Ver/d' -i HDBC-postgresql.cabal"; + }; + }; + + gtk2hs = rec { name = "gtk2hs-0.9.12.1"; p_deps = [ x.haskell98 x.mtl x.bytestring pkgconfig ] ++ (with gtkLibs; [ glib pango gtk gnome.glib]); + src = fetchurl { + url = "http://downloads.sourceforge.net/gtk2hs/${name}.tar.gz"; + sha256 = "110z6v9gzhg6nzlz5gs8aafmipbva6rc50b8z1jgq0k2g25hfy22"; }; + pass = { + buildPhase = " + createEmptyPackageDatabaseAndSetupHook + export GHC_PACKAGE_PATH + ./configure --prefix=\$out --with-user-pkgconf=local-pkg-db --with-pkgconf=\$PACKAGE_DB + make + ensureDir \$out + make install + "; + }; + }; + #wxhaskell = rec { name = "wxhaskel-0.9.4-1"; p_deps = [ x.haskell98 x.mtl x.bytestring pkgconfig wxGTK ] ++ (with gtkLibs; [ glib pango gtk gnome.glib]); + # src = fetchurl { + # url = "http://prdownloads.sourceforge.net/wxhaskell/wxhaskell-src-0.9.4-1.zip"; + # sha256 = "0x6mjly7fxkxgzcl9znhzhik4h88rc56zl8diw5ihf48dcvby8wl"; }; + # pass = { + # buildInputs = [ unzip ]; + # buildPhase = " + # createEmptyPackageDatabaseAndSetupHook + # export GHC_PACKAGE_PATH + # ./configure --prefix=\$out --package-conf=\$PACKAGE_DB + # make + # ensureDir \$out + # make install + # "; + # }; + # }; + + /* + askelldb-hsql-postgresql-0.10.tar.gz +######################################################################## 100.0% + hash is 00nva5hhaknm5via4c1p2wj7ibyn6q874f0c3izjb9dk7rivfvgv + path is /nix/store/9n86rzpn0c4zyb7wpilpfcpkfnq68fch-haskelldb-hsql-postgresql-0.10.tar.gz + 00nva5hhaknm5via4c1p2wj7ibyn6q874f0c3izjb9dk7rivfvgv + */ + + + # 1.13 is stable. There are more recent non stable versions + haxml = rec { name = "HaXml-1.13.3"; p_deps = [ x.base x.rts x.directory x.process x.pretty x.containers x.filepath x.haskell98 ]; + src = fetchurl { url = "http://www.haskell.org/HaXml/${name}.tar.gz"; + sha256 = "08d9wy0rg9m66dd10x0zvkl74l25vxdakz7xp3j88s2gd31jp1v0"; }; + }; + xhtml = rec { name = "xhtml-3000.0.2.2"; p_deps = [ x.base ]; + src = fetchurl { url = "http://hackage.haskell.org/packages/archive/xhtml/3000.0.2.2/xhtml-3000.0.2.2.tar.gz"; + sha256 = "112mbq26ksh7r22y09h0xvm347kba3p4ns12vj5498fqqj333878"; }; + }; + html = rec { name = "html-1.0.1.1"; p_deps = [ x.base ]; + src = fetchurl { url = "http://hackage.haskell.org/packages/archive/html/1.0.1.1/html-1.0.1.1.tar.gz"; + sha256 = "10fayfm18p83zlkr9ikxlqgnzxg1ckdqaqvz6wp1xj95fy3p6yl1"; }; + }; + crypto = rec { name = "crypto-4.1.0"; p_deps = [ x.base x.array x.pretty x.quickcheck x.random x.hunit ]; + src = fetchurl { url = "http://hackage.haskell.org/packages/archive/Crypto/4.1.0/Crypto-4.1.0.tar.gz"; + sha256 = "13rbpbn6p1da6qa9m6f7dmkzdkmpnx6jiyyndzaz99nzqlrwi109"; }; + }; + hslogger = rec { name = "hslogger-1.0.4"; p_deps = [ x.containers x.directory x.mtl x.network x.process]; + src = fetchurl { url = "http://hackage.haskell.org/packages/archive/hslogger/1.0.4/hslogger-1.0.4.tar.gz"; + sha256 = "0kmz8xs1q41rg2xwk22fadyhxdg5mizhw0r4d74y43akkjwj96ar"; }; + }; + parsep = { name = "parsep-0.1"; p_deps = [ x.base x.mtl x.bytestring ]; + src = fetchurl { url = "http://twan.home.fmf.nl/parsep/parsep-0.1.tar.gz"; + sha256 = "1y5pbs5mzaa21127cixsamahlbvmqzyhzpwh6x0nznsgmg2dpc9q"; }; + pass = { patchPhase = "sed -i 's/fps/bytestring/' *.cabal"; }; + }; + time = { name = "time-1.1.2.0"; p_deps = [ x.base x.old_locale ]; + src = fetchurl { url = "http://hackage.haskell.org/packages/archive/time/1.1.2.0/time-1.1.2.0.tar.gz"; + sha256 = "0zm4qqczwbqzy2pk7wz5p1virgylwyzd9zxp0406s5zvp35gvl89"; }; + }; + rjson = { name = "RJson-0.3.3"; p_deps = [ x.base x.mtl x.parsec x.bytestring x.iconv x.array x.containers x.syb_with_class_darcs ]; + src = fetchurl { url = http://hackage.haskell.org/packages/archive/RJson/0.3.3/RJson-0.3.3.tar.gz; + sha256 = "0va1rbgjb8m3rij02318a31bi9gmy3zwyx5z12164c7iwafnd5v2"; }; + }; + iconv = { name = "iconv-0.4"; p_deps = [ x.base x.bytestring ]; + src = fetchurl { url = http://hackage.haskell.org/packages/archive/iconv/0.4/iconv-0.4.tar.gz; + sha256 = "1snqzz7hi2qa83m5v3098rsldb485kz2jggd335qhvjahcp4bj1p"; }; + }; + + # HAPPS - Libraries + http_darcs = { name="http-darcs"; p_deps = [x.network x.parsec]; + src = sourceByName "http"; + #src = fetchdarcs { url = "http://darcs.haskell.org/http/"; md5 = "4475f858cf94f4551b77963d08d7257c"; }; + }; + syb_with_class_darcs = { name="syb-with-class-darcs"; p_deps = [x.template_haskell x.bytestring ]; + src = + # fetchdarcs { url = "http://happs.org/HAppS/syb-with-class"; md5 = "b42336907f7bfef8bea73bc36282d6ac"; }; + sourceByName "syb_with_class"; # { url = "http://happs.org/HAppS/syb-with-class"; md5 = "b42336907f7bfef8bea73bc36282d6ac"; }; + }; + + happs_data_darcs = { name="HAppS-Data-darcs"; p_deps=[ x.base x.mtl x.template_haskell x.syb_with_class_darcs x.haxml x.happs_util_darcs x.regex_compat x.bytestring x.pretty x.binary ]; + src = sourceByName "happs_data"; # fetchdarcs { url = "http://happs.org/repos/HAppS-Data"; md5 = "10c505dd687e9dc999cb187090af9ba7"; }; + }; + happs_util_darcs = { name="HAppS-Util-darcs"; p_deps=[ x.base x.mtl x.hslogger x.template_haskell x.array x.bytestring x.old_time x.process x.directory ]; + src = sourceByName "happs_util"; # fetchdarcs { url = "http://happs.org/repos/HAppS-Util"; md5 = "693cb79017e522031c307ee5e59fc250"; }; + }; + + happs_state_darcs = { name="HAppS-State-darcs"; p_deps=[ x.base x.haxml + x.mtl x.network x.stm x.template_haskell x.hslogger + x.happs_util_darcs x.happs_data_darcs x.bytestring x.containers + x.random x.old_time x.old_locale x.unix x.directory x.binary ]; + src = sourceByName "happs_state"; + #src = fetchdarcs { url = "http://happs.org/repos/HAppS-State"; + # md5 = "956e5c293b60f4a98148fedc5fa38acc"; + # }; + }; +# happs_plugins_darcs = { name="HAppS-plugins-darcs"; p_deps=[ x.base x.mtl x.hslogger x.happs_util_darcs x.happs_data_darcs x.happs_state_darcs x.containers ]; +#[>src = fetchdarcs { url = "http://happs.org/repos/HAppS-Plugins"; md5 = "693cb79017e522031c307ee5e59fc250"; }; +# src = bleedingEdgeRepos.sourceByName "happs_plugins"; +# }; + # there is no .cabal yet + #happs_smtp_darcs = { name="HAppS-smtp-darcs"; p_deps=[]; + #src = fetchdarcs { url = "http://happs.org/repos/HAppS-smtp"; md5 = "5316917e271ea1ed8ad261080bcb47db"; }; + #}; + + happs_ixset_darcs = { name="HAppS-IxSet-darcs"; p_deps=[ x.base x.mtl + x.hslogger x.happs_util_darcs x.happs_state_darcs x.happs_data_darcs + x.template_haskell x.syb_with_class_darcs x.containers ]; + src = sourceByName "happs_ixset"; + #src = fetchdarcs { url = "http://happs.org/repos/HAppS-IxSet"; + #md5 = "fa6b24517f09aa16e972f087430967fd"; + #tag = "0.9.2"; + # no tag + #md5 = "fa6b24517f09aa16e972f087430967fd"; + #}; + }; + happs_server_darcs = { name="HAppS-Server-darcs"; p_deps=[x.haxml x.parsec x.mtl + x.network x.regex_compat x.hslogger x.happs_data_darcs + x.happs_util_darcs x.happs_state_darcs x.happs_ixset_darcs x.http_darcs + x.template_haskell x.xhtml x.html x.bytestring x.random + x.containers x.old_time x.old_locale x.directory x.unix]; + #src = fetchdarcs { url = "http://happs.org/repos/HAppS-HTTP"; md5 = "e1bb17eb30a39d30b8c34dffbf80edc2"; }; + src = sourceByName "happs_server"; + }; + # we need recent version of cabal (because only this supports --pkg-config properly) Thu Feb 7 14:54:07 CET 2008 + # cabal_darcs is added to propagatedBuildInputs automatically below + cabal_darcs = + { name=cabal_darcs_name; p_deps = with ghc.core_libs; [base rts directory process pretty containers filepath]; + src = sourceByName "cabal"; + #fetchdarcs { url = "http://darcs.haskell.org/cabal"; md5 = "8b0bc3c7f2676ce642f98b1568794cd6"; }; + }; + }; + #srcs_only = let x = pkgs; in map (y : y.src ) [ x.happs_util_darcs x.happs_data_darcs x.syb_with_class_darcs x.http_darcs + # x.happs_server_darcs x.happs_ixset_darcs x.happs_plugins_darcs x.happs_server_darcs ]; + toDerivation = attrs : with attrs; + # result is { mtl = ; + addHasktagsTaggingInfo (ghcCabalDerivation { + inherit (attrs) name src; + propagatedBuildInputs = p_deps ++ (lib.optional (attrs.name != cabal_darcs_name) derivations.cabal_darcs ); + srcDir = if attrs ? srcDir then attrs.srcDir else "."; + # add cabal, take deps either from this list or from ghc.core_libs + pass = if attrs ? pass then attrs.pass else {}; + }); + derivations = with lib; builtins.listToAttrs (lib.concatLists ( lib.mapRecordFlatten + ( n : attrs : let d = (toDerivation attrs); in [ (nv n d) (nv attrs.name d) ] ) pkgs ) ); + }.derivations diff --git a/pkgs/misc/ghc68extraLibs/hdbc_postgresql_patch b/pkgs/misc/ghc68extraLibs/hdbc_postgresql_patch new file mode 100644 index 000000000000..75df73ae94b5 --- /dev/null +++ b/pkgs/misc/ghc68extraLibs/hdbc_postgresql_patch @@ -0,0 +1,10 @@ +--- a/Setup.lhs 2008-03-12 08:47:46.000000000 +0100 ++++ b/Setup.lhs 2008-03-12 08:46:39.000000000 +0100 +@@ -2,7 +2,8 @@ + + \begin{code} + import Distribution.PackageDescription ++import Distribution.PackageDescription.Parse + import Distribution.Simple + import Distribution.Simple.LocalBuildInfo + import Distribution.Simple.Program diff --git a/pkgs/misc/ghc68extraLibs/takusen_setup_patch b/pkgs/misc/ghc68extraLibs/takusen_setup_patch new file mode 100644 index 000000000000..baa318de5568 --- /dev/null +++ b/pkgs/misc/ghc68extraLibs/takusen_setup_patch @@ -0,0 +1,51 @@ +--- orig/Setup.hs 2008-03-11 16:35:54.000000000 +0100 ++++ mod/Setup.hs 2008-03-11 16:45:16.000000000 +0100 +@@ -1,3 +1,4 @@ ++-- packages:HAppS-Server,mtl,HAppS-Data,HAppS-State,mtl,process,filepath,Cabal,directory + -- #!/usr/bin/env runhaskell + + {-# OPTIONS -cpp #-} +@@ -8,12 +9,13 @@ + import Control.Exception (bracket) + import Control.Monad (when) + import Data.List (isPrefixOf, unionBy) ++import Distribution.PackageDescription.Parse (writeHookedBuildInfo) + import Distribution.PackageDescription + ( PackageDescription(..), Library(..), BuildInfo(..), HookedBuildInfo +- , emptyHookedBuildInfo, writeHookedBuildInfo, emptyBuildInfo, hasLibs ++ , emptyHookedBuildInfo, emptyBuildInfo, hasLibs + ) + import Distribution.Simple.Setup -- ( --Flag, fromFlag, toFlag +- ( ConfigFlags(..), BuildFlags(..) ++ ( fromFlag, Flag(..), ConfigFlags(..), BuildFlags(..) + , InstallFlags(..), HaddockFlags(..) + , CopyFlags(..) + , RegisterFlags(..), emptyRegisterFlags +@@ -78,11 +80,16 @@ + preConf args flags = do + try (removeFile "takusen.buildinfo") + return emptyHookedBuildInfo ++ conf libName path = (Just emptyBuildInfo { ++ extraLibs = [libName] ++ , extraLibDirs = [ path ++ "/lib" ] ++ , includeDirs = [ path ++ "/include" ] ++ }) + postConf :: Args -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO () + postConf args flags _ localbuildinfo = do + let verbose = (configVerbose flags) +- sqliteBI <- configSqlite3 verbose +- pgBI <- configPG verbose ++ let sqliteBI = conf "sqlite3" "sqlite_path" ++ let pgBI = conf "pq" "pg_path" + oraBI <- configOracle verbose + odbcBI <- configOdbc verbose + let bis = [sqliteBI, pgBI, oraBI, odbcBI] +@@ -99,7 +106,7 @@ + defaultInstallHook :: PackageDescription -> LocalBuildInfo + -> UserHooks -> InstallFlags -> IO () + defaultInstallHook pkg_descr localbuildinfo _ (InstallFlags uInstFlag verbosity) = do +- install pkg_descr localbuildinfo (CopyFlags NoCopyDest verbosity) ++ install pkg_descr localbuildinfo (CopyFlags (Flag NoCopyDest) verbosity) + when (hasLibs pkg_descr) $ + register pkg_descr localbuildinfo + emptyRegisterFlags{ regPackageDB=uInstFlag, regVerbose=verbosity } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2d490661bdee..0722a2228dcc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -159,7 +159,7 @@ rec { "; }; # example usage - #testSourceWithTags = sourceWithTagsDerivation (ghc68_extra_libs ghcsAndLibs.ghc68).happs_server_darcs.passthru.sourceWithTags; + #testSourceWithTags = sourceWithTagsDerivation (ghc68extraLibs ghcsAndLibs.ghc68).happs_server_darcs.passthru.sourceWithTags; addCTaggingInfo = deriv : deriv // { @@ -1169,7 +1169,7 @@ rec { flapjax = import ../development/compilers/flapjax { inherit fetchurl stdenv; ghc = ghcsAndLibs.ghc68.ghc; - libs = with (ghc68_extra_libs ghcsAndLibs.ghc68 // ghcsAndLibs.ghc68.core_libs); [ mtl parsec random ]; + libs = with (ghc68extraLibs ghcsAndLibs.ghc68 // ghcsAndLibs.ghc68.core_libs); [ mtl parsec random ]; }; g77 = import ../build-support/gcc-wrapper { @@ -1348,7 +1348,7 @@ rec { }; # this may change in the future - ghc68_extra_libs = (import ../misc/ghc68_extra_libs ) { + ghc68extraLibs = (import ../misc/ghc68extraLibs ) { # lib like stuff inherit bleedingEdgeRepos fetchurl lib addHasktagsTaggingInfo ghcCabalDerivation pkgconfig unzip; # used (non haskell) libraries (ffi etc) @@ -1374,8 +1374,8 @@ rec { # (map ( a : __getAttr a ghcsAndLibs.ghc68.core_libs ) [ "cabal" "mtl" "base" ] # some extra libs - ++ (lib.flattenAttrs (ghc68_extra_libs ghcsAndLibs.ghc68) ); - # ++ map ( a : __getAttr a (ghc68_extra_libs ghcsAndLibs.ghc68 ) ) [ "mtl" "parsec" ... ] + ++ (lib.flattenAttrs (ghc68extraLibs ghcsAndLibs.ghc68) ); + # ++ map ( a : __getAttr a (ghc68extraLibs ghcsAndLibs.ghc68 ) ) [ "mtl" "parsec" ... ] inherit ghc; }; -- cgit 1.4.1