mirror of
https://github.com/serokell/xrefcheck.git
synced 2024-10-26 15:35:29 +03:00
[#107] Update stack resolver to the newer version
Problem: We had old resolver version, that used ghc 8.10.4 and outdated versions of libraries Solution: Change resolver to lts 19.13, that uses ghc 9.0.2 and update haskell.nix configuration files to can build project via `nix-build` command
This commit is contained in:
parent
f69d74e13d
commit
b255445a55
@ -5,10 +5,10 @@
|
||||
"homepage": "",
|
||||
"owner": "input-output-hk",
|
||||
"repo": "hackage.nix",
|
||||
"rev": "c4a3c64af0a33052ba93128fbdc40a2ee1335979",
|
||||
"sha256": "1r74sl8r56r8360zy5kgiqcxxzx0gib314k2csjwgz71g6q5fglm",
|
||||
"rev": "c90cce1583d9efe40dc1367ddf0f843323a7a8f6",
|
||||
"sha256": "1bjjg9cg3ykw9c21hk8ji7djl153jybgj55zgifh7bwwrqjb62w7",
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/input-output-hk/hackage.nix/archive/c4a3c64af0a33052ba93128fbdc40a2ee1335979.tar.gz",
|
||||
"url": "https://github.com/input-output-hk/hackage.nix/archive/c90cce1583d9efe40dc1367ddf0f843323a7a8f6.tar.gz",
|
||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||
},
|
||||
"haskell.nix": {
|
||||
@ -17,10 +17,10 @@
|
||||
"homepage": "https://input-output-hk.github.io/haskell.nix",
|
||||
"owner": "input-output-hk",
|
||||
"repo": "haskell.nix",
|
||||
"rev": "a4e105dcdb6d2b9d0627b8f0b893cec80485c14e",
|
||||
"sha256": "144cfklhmqrq1kmvnmvcfmn819ijy4hr20whfazypxa72lcs3lz0",
|
||||
"rev": "1b0eac78c61b425ad382427b25a4450c8d6f6771",
|
||||
"sha256": "06m5fa3zndgfngyl2p7v738lv3miljmdwz35c6vqly78agc0xdy9",
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/input-output-hk/haskell.nix/archive/a4e105dcdb6d2b9d0627b8f0b893cec80485c14e.tar.gz",
|
||||
"url": "https://github.com/input-output-hk/haskell.nix/archive/1b0eac78c61b425ad382427b25a4450c8d6f6771.tar.gz",
|
||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||
},
|
||||
"nixpkgs": {
|
||||
@ -53,10 +53,10 @@
|
||||
"homepage": "",
|
||||
"owner": "input-output-hk",
|
||||
"repo": "stackage.nix",
|
||||
"rev": "8d07cc6c73717ba19304e6b9231a88504d0846b4",
|
||||
"sha256": "122cpdw8bsbfk6pmp8jblvkfy7g72zxm076i5c4s84rbyw33rd9f",
|
||||
"rev": "0ff7b16dc349ed2b573c777907885f3f270a7b0e",
|
||||
"sha256": "02n4x734q16n906v70hwr4lgpacz1qa7b96p16m4rcckxdqj8ybn",
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/input-output-hk/stackage.nix/archive/8d07cc6c73717ba19304e6b9231a88504d0846b4.tar.gz",
|
||||
"url": "https://github.com/input-output-hk/stackage.nix/archive/0ff7b16dc349ed2b573c777907885f3f270a7b0e.tar.gz",
|
||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ dependencies:
|
||||
- directory
|
||||
- dlist
|
||||
- filepath
|
||||
- file-embed
|
||||
- file-embed < 0.14
|
||||
- fmt
|
||||
- ftp-client
|
||||
- Glob
|
||||
@ -92,7 +92,6 @@ dependencies:
|
||||
- text
|
||||
- text-metrics
|
||||
- th-lift-instances
|
||||
- th-utilities
|
||||
- transformers
|
||||
- universum
|
||||
- yaml
|
||||
|
@ -23,10 +23,8 @@ import Text.Regex.TDFA qualified as R
|
||||
import Text.Regex.TDFA.ByteString ()
|
||||
import Text.Regex.TDFA.Text qualified as R
|
||||
|
||||
-- FIXME: Use </> from System.FilePath
|
||||
-- </> from Posix is used only because we cross-compile to Windows and \ doesn't work on Linux
|
||||
import Data.FileEmbed (embedFile)
|
||||
import System.FilePath.Posix ((</>))
|
||||
import System.FilePath ((</>))
|
||||
import Time (KnownRatName, Second, Time, unitsP)
|
||||
|
||||
import Xrefcheck.Core
|
||||
@ -182,6 +180,12 @@ defConfigText flavor =
|
||||
]
|
||||
]
|
||||
|
||||
foldMap (deriveFromJSON aesonConfigOption)
|
||||
[ ''VerifyConfig
|
||||
, ''Config
|
||||
, ''ScannersConfig
|
||||
]
|
||||
|
||||
defConfig :: HasCallStack => Flavor -> Config
|
||||
defConfig flavor =
|
||||
either (error . toText . prettyPrintParseException) id $
|
||||
@ -191,10 +195,6 @@ defConfig flavor =
|
||||
-- Yaml instances
|
||||
-----------------------------------------------------------
|
||||
|
||||
deriveFromJSON aesonConfigOption ''Config
|
||||
deriveFromJSON aesonConfigOption ''ScannersConfig
|
||||
deriveFromJSON aesonConfigOption ''VerifyConfig
|
||||
|
||||
instance KnownRatName unit => FromJSON (Time unit) where
|
||||
parseJSON = withText "time" $
|
||||
maybe (fail "Unknown time") pure . unitsP . toString
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
# To update hackage and stackage indexes used by CI run:
|
||||
# $ niv update hackage.nix; niv update stackage.nix
|
||||
resolver: lts-17.3
|
||||
resolver: lts-19.13
|
||||
|
||||
packages:
|
||||
- .
|
||||
@ -12,6 +12,7 @@ packages:
|
||||
extra-deps:
|
||||
- pretty-terminal-0.1.0.0
|
||||
- roman-numerals-0.5.1.5
|
||||
- with-utf8-1.0.2.2
|
||||
- with-utf8-1.0.2.3
|
||||
- file-embed-0.0.13.0
|
||||
- th-utilities-0.2.4.0@sha256:ba19cd8441aa43dbaed40e9055bb5a7cbd7cf9e154f5253c6bf9293af8b1f96b,1869
|
||||
- firefly-0.2.1.0@sha256:e9d73486464c3e223ec457e02b30ddd5b550fdbf6292b268c64581e2b07d888b,1519
|
||||
|
@ -5,43 +5,50 @@
|
||||
|
||||
packages:
|
||||
- completed:
|
||||
hackage: pretty-terminal-0.1.0.0@sha256:e9135d86ebb2a8e3aaf5a79088de4628dbd49988388e0fbfc26c5ecb3c399ad9,1638
|
||||
pantry-tree:
|
||||
size: 385
|
||||
sha256: fecec01e618890c284e57cb873b8f9531f479562b7cf08497aef097da3ef90ec
|
||||
size: 385
|
||||
hackage: pretty-terminal-0.1.0.0@sha256:e9135d86ebb2a8e3aaf5a79088de4628dbd49988388e0fbfc26c5ecb3c399ad9,1638
|
||||
original:
|
||||
hackage: pretty-terminal-0.1.0.0
|
||||
- completed:
|
||||
hackage: roman-numerals-0.5.1.5@sha256:819d04d9d442b24629dd058f6f0b02bd78e9f9ae99538bc44ca448f1cb2b7b01,1208
|
||||
pantry-tree:
|
||||
size: 220
|
||||
sha256: 2154c0f4a11842593586dc1932e233cd8c802994763f7d3ce3e5916be8bc7ee5
|
||||
size: 220
|
||||
hackage: roman-numerals-0.5.1.5@sha256:819d04d9d442b24629dd058f6f0b02bd78e9f9ae99538bc44ca448f1cb2b7b01,1208
|
||||
original:
|
||||
hackage: roman-numerals-0.5.1.5
|
||||
- completed:
|
||||
hackage: with-utf8-1.0.2.2@sha256:42eed140390b3e93d9482b084d1d0150e8774667f39c33bd47e84815751fad09,3057
|
||||
pantry-tree:
|
||||
sha256: 3be938e2612faaab078f77bd8e0def999b6f60fc2adda8d89382b0681b4ba420
|
||||
size: 1051
|
||||
sha256: 4b06e9ee43909239a813ccd972eeb444e541efd72aeb0d343206449169227286
|
||||
hackage: with-utf8-1.0.2.3@sha256:3de710e4aa70856ab0845373bfde4746920fd45b8641bfaa3bd5cd2c200c4704,3051
|
||||
original:
|
||||
hackage: with-utf8-1.0.2.2
|
||||
hackage: with-utf8-1.0.2.3
|
||||
- completed:
|
||||
pantry-tree:
|
||||
sha256: 6c8f71ca993658844b93a2120f2ff1536400e705890a6fbf0f4e9889ff502649
|
||||
size: 477
|
||||
hackage: file-embed-0.0.13.0@sha256:a819e90b91cab919ffef5895ab6e1b2a44eac395a585f489b0c289a4a12d1c54,1396
|
||||
original:
|
||||
hackage: file-embed-0.0.13.0
|
||||
- completed:
|
||||
hackage: th-utilities-0.2.4.0@sha256:ba19cd8441aa43dbaed40e9055bb5a7cbd7cf9e154f5253c6bf9293af8b1f96b,1869
|
||||
pantry-tree:
|
||||
size: 882
|
||||
sha256: 8c577d112a8398a5542aa4205b2e8a470a66d57590e6606d752d71e75d7425ea
|
||||
size: 882
|
||||
hackage: th-utilities-0.2.4.0@sha256:ba19cd8441aa43dbaed40e9055bb5a7cbd7cf9e154f5253c6bf9293af8b1f96b,1869
|
||||
original:
|
||||
hackage: th-utilities-0.2.4.0@sha256:ba19cd8441aa43dbaed40e9055bb5a7cbd7cf9e154f5253c6bf9293af8b1f96b,1869
|
||||
- completed:
|
||||
hackage: firefly-0.2.1.0@sha256:e9d73486464c3e223ec457e02b30ddd5b550fdbf6292b268c64581e2b07d888b,1519
|
||||
pantry-tree:
|
||||
size: 600
|
||||
sha256: 51d4bf283e1d9ae37e43cd387b112919e45f2fc088f57cbd33c8bad9b0c179f1
|
||||
size: 600
|
||||
hackage: firefly-0.2.1.0@sha256:e9d73486464c3e223ec457e02b30ddd5b550fdbf6292b268c64581e2b07d888b,1519
|
||||
original:
|
||||
hackage: firefly-0.2.1.0@sha256:e9d73486464c3e223ec457e02b30ddd5b550fdbf6292b268c64581e2b07d888b,1519
|
||||
snapshots:
|
||||
- completed:
|
||||
size: 563099
|
||||
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/17/3.yaml
|
||||
sha256: 1e9f31ec160a144f796bc49b91dfc2bab5eca88b1dcc93da569108febaf5b382
|
||||
original: lts-17.3
|
||||
sha256: ef98d70e4018bf01feb00ccdcd33ab26d056dbb71b38057c78fdd0d1ec671c85
|
||||
size: 618740
|
||||
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/13.yaml
|
||||
original: lts-19.13
|
||||
|
Loading…
Reference in New Issue
Block a user