Closed Freed-Wu closed 1 year ago
It seems that you are missing GHC boot libraries. How did you set up your Haskell developing environment? Are you using Haksell packages from Arch Linux?
Are you using Haksell packages from Arch Linux?
Right, I try to package this software to Archlinux.
Haskell packages in Arch Linux repo are linked dynamically only, so you have to tell cabal to use dynamic libraries:
cabal configure --disable-library-vanilla --enable-shared --enable-executable-dynamic --ghc-options=-dynamic
Then you will be able to build nvfetcher from source. However, this is for development purpose only, while creating Haskell packages for Arch Linux doesn't rely on cabal - you may want to take a look at https://wiki.archlinux.org/title/haskell_package_guidelines. Moreoever, you will need to package nix-prefetch-git
and nix-prefetch-docker
as runtime dependencies of nvfetcher.
Thanks!
https://archlinux.org/packages/extra/x86_64/haskell-aeson/'s version is 2.1.2.1, but nvfetcher need >= 1.5.6 && < 2.1
We could update the bounds of aeson in nvfetcher to see if it builds with the new aeson.
We could update the bounds of aeson in nvfetcher to see if it builds with the new aeson.
I have tested it can work:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nvfetcher#n21
sed -i 's/&& <2\.1//' nvfetcher.cabal
I
cabal update && cabal build
but get many errors. What something wrong I did?