Skip to content

Commit

Permalink
Merge pull request #527 from expipiplus1/ellie-hslua
Browse files Browse the repository at this point in the history
hslua, lua: Cope with the lua bindings moving from hslua to lua
  • Loading branch information
expipiplus1 authored Oct 23, 2021
2 parents b1b7155 + 03a2e86 commit 8aeef87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Distribution/Nixpkgs/Haskell/FromCabal/Flags.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ configureCabalFlags' (PackageIdentifier name version)
| name == "hlibsass" && version >= mkVersion [0,1,5]
= [enable "externalLibsass"]
| name == "hmatrix" = [enable "openblas", enable "disable-default-paths"]
| name == "hslua" = [enable "system-lua", disable "use-pkgconfig"]
| name == "hslua" && version < mkVersion [2,0,0]
= [enable "system-lua", disable "use-pkgconfig"]
| name == "idris" = [enable "gmp", enable "ffi", enable "curses", ("execonly", version `withinRange` orLaterVersion (mkVersion [1,1,1])) ]
| name == "io-streams" = [enable "NoInteractiveTests"]
| name == "liquid-fixpoint" = [enable "build-external"]
| name == "lua" && version >= mkVersion [2,0,0]
= [enable "system-lua", disable "use-pkgconfig"]
| name == "pandoc" = [enable "https", disable "trypandoc"]
| name == "pandoc-placetable" = [enable "inlineMarkdown"]
| name == "persistent-sqlite" = [enable "systemlib"]
Expand Down
3 changes: 2 additions & 1 deletion src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ hooks =
, ("hoogle", set testTarget "--test-option=--no-net")
, ("hsignal < 0.2.7.4", set phaseOverrides "prePatch = \"rm -v Setup.lhs\";") -- https://github.com/amcphail/hsignal/issues/1
, ("hslua < 0.9.3", over (libraryDepends . system) (replace (pkg "lua") (pkg "lua5_1")))
, ("hslua >= 0.9.3", over (libraryDepends . system) (replace (pkg "lua") (pkg "lua5_3")))
, ("hslua >= 0.9.3 && < 2.0.0", over (libraryDepends . system) (replace (pkg "lua") (pkg "lua5_3")))
, ("hspec-core >= 2.4.4", hspecCoreOverrides)
, ("http-client", set doCheck False) -- attempts to access the network
, ("http-client-openssl >= 0.2.0.1", set doCheck False) -- attempts to access the network
Expand All @@ -142,6 +142,7 @@ hooks =
, ("libxml", set (configureFlags . contains "--extra-include-dir=${libxml2.dev}/include/libxml2") True)
, ("liquid-fixpoint", set (testDepends . system . contains (pkg "z3")) True . set (testDepends . system . contains (pkg "nettools")) True . set (testDepends . system . contains (pkg "git")) True . set doCheck False)
, ("liquidhaskell", set (testDepends . system . contains (pkg "z3")) True)
, ("lua >= 2.0.0", over (libraryDepends . system) (replace (pkg "lua") (pkg "lua5_3")))
, ("lzma-clib", over (metaSection . platforms) (Set.filter (\(Platform _ os) -> os == Windows)) . set (libraryDepends . haskell . contains (self "only-buildable-on-windows")) False)
, ("MFlow < 4.6", set (libraryDepends . tool . contains (self "cpphs")) True)
, ("mwc-random", set doCheck False)
Expand Down

0 comments on commit 8aeef87

Please sign in to comment.