berberman / nvfetcher

Generate nix sources expr for the latest version of packages
https://nvfetcher.torus.icu
MIT License
178 stars 15 forks source link

[question] cabal build will fail #102

Closed Freed-Wu closed 1 year ago

Freed-Wu commented 1 year ago

I cabal update && cabal build but get many errors. What something wrong I did?

Configuring library for prettyprinter-1.7.1..
Preprocessing library for prettyprinter-1.7.1..
Building library for prettyprinter-1.7.1..
[ 1 of 28] Compiling Prettyprinter.Render.Util.Panic ( src/Prettyprinter/Render/Util/Panic.hs, dist/build/Prettyprinter/Render/Util/Panic.o, dist/build/Prettyprinter/Render/Util/Panic.dyn_o )

src/Prettyprinter/Render/Util/Panic.hs:1:8: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
1 | module Prettyprinter.Render.Util.Panic (
  |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Failed to build profunctors-5.6.2.
Build log (
/home/wzy/.cabal/logs/ghc-9.0.2/profunctors-5.6.2-4f196a09220f19e6575acdf6837a75d6a824da19f91db504900c23673f3f7d0c.log
):
Configuring library for profunctors-5.6.2..
Preprocessing library for profunctors-5.6.2..
Building library for profunctors-5.6.2..
[ 1 of 16] Compiling Data.Profunctor.Unsafe ( src/Data/Profunctor/Unsafe.hs, dist/build/Data/Profunctor/Unsafe.o, dist/build/Data/Profunctor/Unsafe.dyn_o )

src/Data/Profunctor/Unsafe.hs:33:1: error:
    Could not find module ‘Control.Arrow’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
33 | import Control.Arrow
   | ^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:34:1: error:
    Could not find module ‘Control.Category’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
34 | import Control.Category
   | ^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:35:1: error:
    Could not find module ‘Control.Comonad’
    There are files missing in the ‘comonad-5.0.8’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
35 | import Control.Comonad (Cokleisli(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:36:1: error:
    Could not find module ‘Control.Monad’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
36 | import Control.Monad (liftM)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:37:1: error:
    Could not find module ‘Data.Bifunctor.Biff’
    There are files missing in the ‘bifunctors-5.5.15’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
37 | import Data.Bifunctor.Biff (Biff(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:38:1: error:
    Could not find module ‘Data.Bifunctor.Clown’
    There are files missing in the ‘bifunctors-5.5.15’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
38 | import Data.Bifunctor.Clown (Clown(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:39:1: error:
    Could not find module ‘Data.Bifunctor.Joker’
    There are files missing in the ‘bifunctors-5.5.15’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
39 | import Data.Bifunctor.Joker (Joker(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:40:1: error:
    Could not find module ‘Data.Bifunctor.Product’
    There are files missing in the ‘bifunctors-5.5.15’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
40 | import Data.Bifunctor.Product (Product(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:41:1: error:
    Could not find module ‘Data.Bifunctor.Sum’
    There are files missing in the ‘bifunctors-5.5.15’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
41 | import Data.Bifunctor.Sum (Sum(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:42:1: error:
    Could not find module ‘Data.Bifunctor.Tannen’
    There are files missing in the ‘bifunctors-5.5.15’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
42 | import Data.Bifunctor.Tannen (Tannen(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:43:1: error:
    Could not find module ‘Data.Coerce’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
43 | import Data.Coerce (Coercible, coerce)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:47:1: error:
    Could not find module ‘Data.Functor.Contravariant’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
47 | import Data.Functor.Contravariant (Contravariant(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:48:1: error:
    Could not find module ‘Data.Tagged’
    There are files missing in the ‘tagged-0.8.7’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
48 | import Data.Tagged
   | ^^^^^^^^^^^^^^^^^^

src/Data/Profunctor/Unsafe.hs:49:1: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
49 | import Prelude hiding (id,(.))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Failed to build selective-0.5.
Build log (
/home/wzy/.cabal/logs/ghc-9.0.2/selective-0.5-93ece29073a8a73cedec6bff298bb044ca66c4dba72510e8a1b3f0cdf1932032.log
):
Configuring library for selective-0.5..
Preprocessing library for selective-0.5..
Building library for selective-0.5..
[1 of 5] Compiling Control.Selective ( src/Control/Selective.hs, dist/build/Control/Selective.o, dist/build/Control/Selective.dyn_o )

src/Control/Selective.hs:18:8: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
18 | module Control.Selective (
   |        ^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:33:1: error:
    Could not find module ‘Control.Applicative’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
33 | import Control.Applicative
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:34:1: error:
    Could not find module ‘Control.Applicative.Lift’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
34 | import Control.Applicative.Lift
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:35:1: error:
    Could not find module ‘Control.Arrow’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
35 | import Control.Arrow
   | ^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:36:1: error:
    Could not find module ‘Control.Monad.ST’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
36 | import Control.Monad.ST
   | ^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:37:1: error:
    Could not find module ‘Control.Monad.Trans.Cont’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
37 | import Control.Monad.Trans.Cont
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:38:1: error:
    Could not find module ‘Control.Monad.Trans.Except’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
38 | import Control.Monad.Trans.Except
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:39:1: error:
    Could not find module ‘Control.Monad.Trans.Identity’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
39 | import Control.Monad.Trans.Identity
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:40:1: error:
    Could not find module ‘Control.Monad.Trans.Maybe’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
40 | import Control.Monad.Trans.Maybe
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:41:1: error:
    Could not find module ‘Control.Monad.Trans.Reader’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
41 | import Control.Monad.Trans.Reader
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:42:1: error:
    Could not find module ‘Control.Monad.Trans.RWS’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
42 | import Control.Monad.Trans.RWS
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:43:1: error:
    Could not find module ‘Control.Monad.Trans.State’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
43 | import Control.Monad.Trans.State
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:44:1: error:
    Could not find module ‘Control.Monad.Trans.Writer’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
44 | import Control.Monad.Trans.Writer
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:45:1: error:
    Could not find module ‘Data.Bool’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
45 | import Data.Bool
   | ^^^^^^^^^^^^^^^^

src/Control/Selective.hs:46:1: error:
    Could not find module ‘Data.Function’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
46 | import Data.Function
   | ^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:47:1: error:
    Could not find module ‘Data.Functor.Compose’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
47 | import Data.Functor.Compose
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:48:1: error:
    Could not find module ‘Data.Functor.Identity’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
48 | import Data.Functor.Identity
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:49:1: error:
    Could not find module ‘Data.Functor.Product’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
49 | import Data.Functor.Product
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:50:1: error:
    Could not find module ‘Data.List.NonEmpty’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
50 | import Data.List.NonEmpty
   | ^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:51:1: error:
    Could not find module ‘Data.Proxy’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
51 | import Data.Proxy
   | ^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:52:1: error:
    Could not find module ‘Data.Semigroup’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
52 | import Data.Semigroup (Semigroup (..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:53:1: error:
    Could not find module ‘GHC.Conc’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
53 | import GHC.Conc (STM)
   | ^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:55:1: error:
    Could not find module ‘Control.Monad.Trans.RWS.Strict’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
55 | import qualified Control.Monad.Trans.RWS.Strict    as S
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:56:1: error:
    Could not find module ‘Control.Monad.Trans.State.Strict’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
56 | import qualified Control.Monad.Trans.State.Strict  as S
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/Selective.hs:57:1: error:
    Could not find module ‘Control.Monad.Trans.Writer.Strict’
    There are files missing in the ‘transformers-0.5.6.2’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
57 | import qualified Control.Monad.Trans.Writer.Strict as S
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Failed to build text-binary-0.2.1.1.
Build log (
/home/wzy/.cabal/logs/ghc-9.0.2/text-binary-0.2.1.1-d7b98b8f9552a075dba6338532eb9d72809a5dcb5edadf7579316dee72bc68be.log
):
Warning: text-binary.cabal:22:21: version operators used. To use version
operators the package needs to specify at least 'cabal-version: >= 1.8'.
Configuring text-binary-0.2.1.1...
Preprocessing library for text-binary-0.2.1.1..
Building library for text-binary-0.2.1.1..
[1 of 1] Compiling Data.Text.Binary ( Data/Text/Binary.hs, dist/build/Data/Text/Binary.o, dist/build/Data/Text/Binary.dyn_o )

Data/Text/Binary.hs:4:8: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
  |
4 | module Data.Text.Binary where
  |        ^^^^^^^^^^^^^^^^

Failed to build vector-binary-instances-0.2.5.2.
Build log (
/home/wzy/.cabal/logs/ghc-9.0.2/vector-binary-instances-0.2.5.2-cf55e548b36c66b2a409175330be785ae525d1eb77c03e168c400883caccd92c.log
):
Configuring library for vector-binary-instances-0.2.5.2..
Preprocessing library for vector-binary-instances-0.2.5.2..
Building library for vector-binary-instances-0.2.5.2..
[1 of 1] Compiling Data.Vector.Binary ( Data/Vector/Binary.hs, dist/build/Data/Vector/Binary.o, dist/build/Data/Vector/Binary.dyn_o )

Data/Vector/Binary.hs:38:8: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
38 | module Data.Vector.Binary (
   |        ^^^^^^^^^^^^^^^^^^

Data/Vector/Binary.hs:45:1: error:
    Could not find module ‘Data.Binary’
    There are files missing in the ‘binary-0.8.8.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
45 | import Data.Binary
   | ^^^^^^^^^^^^^^^^^^

Data/Vector/Binary.hs:47:1: error:
    Could not find module ‘Data.Vector.Generic’
    There are files missing in the ‘vector-0.13.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
47 | import qualified Data.Vector.Generic   as G
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/Vector/Binary.hs:48:1: error:
    Could not find module ‘Data.Vector.Generic.Mutable’
    There are files missing in the ‘vector-0.13.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
48 | import qualified Data.Vector.Generic.Mutable as GM
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/Vector/Binary.hs:49:1: error:
    Could not find module ‘Data.Vector.Unboxed’
    There are files missing in the ‘vector-0.13.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
49 | import qualified Data.Vector.Unboxed   as U
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/Vector/Binary.hs:50:1: error:
    Could not find module ‘Data.Vector.Storable’
    There are files missing in the ‘vector-0.13.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
50 | import qualified Data.Vector.Storable  as S
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/Vector/Binary.hs:51:1: error:
    Could not find module ‘Data.Vector.Primitive’
    There are files missing in the ‘vector-0.13.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
51 | import qualified Data.Vector.Primitive as P
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/Vector/Binary.hs:52:1: error:
    Could not find module ‘Data.Vector’
    There are files missing in the ‘vector-0.13.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
52 | import Data.Vector (Vector)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/Vector/Binary.hs:53:1: error:
    Could not find module ‘System.IO.Unsafe’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
53 | import System.IO.Unsafe
   | ^^^^^^^^^^^^^^^^^^^^^^^

Data/Vector/Binary.hs:55:1: error:
    Could not find module ‘Foreign.Storable’
    There are files missing in the ‘base-4.15.1.0’ package,
    try running 'ghc-pkg check'.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
55 | import Foreign.Storable (Storable)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build aeson-2.0.3.0 (which is required by exe:nvfetcher from
nvfetcher-0.6.1.0). See the build log above for details.
berberman commented 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?

Freed-Wu commented 1 year ago

Are you using Haksell packages from Arch Linux?

Right, I try to package this software to Archlinux.

berberman commented 1 year ago

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.

Freed-Wu commented 1 year ago

Thanks!

Freed-Wu commented 1 year ago

https://archlinux.org/packages/extra/x86_64/haskell-aeson/'s version is 2.1.2.1, but nvfetcher need >= 1.5.6 && < 2.1

berberman commented 1 year ago

We could update the bounds of aeson in nvfetcher to see if it builds with the new aeson.

Freed-Wu commented 1 year ago

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