mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-11 23:08:30 +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
|
||||
]
|
||||
|
||||
System.IO.UTF8.writeFile (incexc </> "slug") $ concat
|
||||
[ date
|
||||
, "-"
|
||||
, ghcVer
|
||||
, if requireHaskellPlatform settings then "hp" else ""
|
||||
, if isInc then "-inc" else "-exc"
|
||||
]
|
||||
|
||||
return ii
|
||||
|
||||
biToSPI :: BuildInfo -> SelectedPackageInfo
|
||||
|
||||
@ -37,7 +37,7 @@ createHackageFile isInc hp ii ghcVer date hackageH tarballH = do
|
||||
hPutStr tarballH $ concat
|
||||
[ "#!/bin/bash -ex\n\ntar czfv "
|
||||
, stackageFP
|
||||
, " hackage desc ../build*"
|
||||
, " hackage desc slug ../build*"
|
||||
]
|
||||
indextargz <- getTarballName
|
||||
indexLBS <- L.readFile indextargz
|
||||
|
||||
Loading…
Reference in New Issue
Block a user