mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-23 12:15:11 +02:00
stack: fix build
The hackage-security dependency is not versioned in 'pantry', and the recently released 0.6.0.0 hid Hackage.Security.Util.Lens which pantry depends on.
This commit is contained in:
parent
0beef9e081
commit
a94fd343f3
1 changed files with 10 additions and 2 deletions
|
@ -11,13 +11,21 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
homepage="https://haskellstack.org"
|
homepage="https://haskellstack.org"
|
||||||
distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz
|
distfiles="https://hackage.haskell.org/package/${pkgname}-${version}/${pkgname}-${version}.tar.gz
|
||||||
https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}"
|
https://www.stackage.org/${_stackage}/cabal.config>cabal.config-${_stackage}
|
||||||
|
http://hackage.haskell.org/package/pantry-0.2.0.0/pantry-0.2.0.0.tar.gz"
|
||||||
checksum="f983369a22a3e3af9ae09770cf34e4ba439cc7f5ef5a0e87f4db11c1ec5356e0
|
checksum="f983369a22a3e3af9ae09770cf34e4ba439cc7f5ef5a0e87f4db11c1ec5356e0
|
||||||
c077d34ebe0b5139f57492770c7fd1dabb4b81df0ed842e6ca30b002d9fe78ec"
|
c077d34ebe0b5139f57492770c7fd1dabb4b81df0ed842e6ca30b002d9fe78ec
|
||||||
|
8cd8b4192c0a1e37666852306d588a6db03ea03363572e0e54e0e8a9aa19e2e2"
|
||||||
skip_extraction="cabal.config-${_stackage}"
|
skip_extraction="cabal.config-${_stackage}"
|
||||||
nocross=yes
|
nocross=yes
|
||||||
nopie_files="/usr/bin/stack"
|
nopie_files="/usr/bin/stack"
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
mv ../pantry-0.2.0.0 .
|
||||||
|
vsed -e 's/hackage-security/hackage-security <0.6.0.0/g' -i pantry-0.2.0.0/pantry.cabal
|
||||||
|
vsed -e 's/^- \./&\n- pantry-0.2.0.0/' -i stack.yaml
|
||||||
|
}
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config
|
cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/cabal.config-${_stackage} cabal.config
|
||||||
HOME=$PWD cabal v2-update
|
HOME=$PWD cabal v2-update
|
||||||
|
|
Loading…
Add table
Reference in a new issue