Jean-Marc Notin
未讀,2016年6月6日 清晨7:05:332016/6/6登入以回覆作者
登入以轉寄訊息
你的權限不足,無法在這個群組刪除訊息
登入以檢舉訊息
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:Stackage
Hi,
I am facing a problem with a package from Stackage, namely
pandoc-citeproc. But i guess my issue is not specific to
pandoc-citeproc.
To do its job, pandoc-citeproc relies on several data files; the path
to these files is hard-coded at compile time. Yet, everything works
fine using stack; the problem arise when I want to run my application
outside the stack environment : pandoc-citeproc complains about not
finding its data-files.
Fortunately, pandoc-citeproc offers a flag at compile time that embed
the data files in the binary package. So when I was using Cabal only,
I could manually compile pandoc-citeproc enabling that flag. But now
that I am using Stack, I did not find a similar workaround.
Specifically, I found a way in the documentation to pass flags to
extra deps packages, but not to packages from the stackage snapshot.
Is there a way to force a flag when compiling a package from a
snapshot ? Or at least is there a way to force stack to use a
customized version of a package ?
Thank you for your help !
--
Jean-Marc Notin