mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-02-24 12:07:53 +01:00
Add a slug file fpco/stackage-server#37
This commit is contained in:
parent
3dfe7b4e1d
commit
8bf144a902
@ -126,6 +126,14 @@ getInstallInfo settings = do
|
|||||||
, show now
|
, show now
|
||||||
]
|
]
|
||||||
|
|
||||||
|
System.IO.UTF8.writeFile (incexc </> "slug") $ concat
|
||||||
|
[ date
|
||||||
|
, "-"
|
||||||
|
, ghcVer
|
||||||
|
, if requireHaskellPlatform settings then "hp" else ""
|
||||||
|
, if isInc then "-inc" else "-exc"
|
||||||
|
]
|
||||||
|
|
||||||
return ii
|
return ii
|
||||||
|
|
||||||
biToSPI :: BuildInfo -> SelectedPackageInfo
|
biToSPI :: BuildInfo -> SelectedPackageInfo
|
||||||
|
|||||||
@ -37,7 +37,7 @@ createHackageFile isInc hp ii ghcVer date hackageH tarballH = do
|
|||||||
hPutStr tarballH $ concat
|
hPutStr tarballH $ concat
|
||||||
[ "#!/bin/bash -ex\n\ntar czfv "
|
[ "#!/bin/bash -ex\n\ntar czfv "
|
||||||
, stackageFP
|
, stackageFP
|
||||||
, " hackage desc ../build*"
|
, " hackage desc slug ../build*"
|
||||||
]
|
]
|
||||||
indextargz <- getTarballName
|
indextargz <- getTarballName
|
||||||
indexLBS <- L.readFile indextargz
|
indexLBS <- L.readFile indextargz
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user