language/haskell: optionally add args to install.
This commit is contained in:
parent
6a6b56127c
commit
3a3f56e9a3
@ -54,12 +54,12 @@ module Language
|
|||||||
rm_rf lib
|
rm_rf lib
|
||||||
end
|
end
|
||||||
|
|
||||||
def install_cabal_package
|
def install_cabal_package args=[]
|
||||||
cabal_sandbox do
|
cabal_sandbox do
|
||||||
# the dependencies are built first and installed locally, and only the
|
# the dependencies are built first and installed locally, and only the
|
||||||
# current package is actually installed in the destination dir
|
# current package is actually installed in the destination dir
|
||||||
cabal_install "--only-dependencies"
|
cabal_install "--only-dependencies", *args
|
||||||
cabal_install "--prefix=#{prefix}"
|
cabal_install "--prefix=#{prefix}", *args
|
||||||
end
|
end
|
||||||
cabal_clean_lib
|
cabal_clean_lib
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user