Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails in nixpkgs #314

Closed
Mic92 opened this issue Mar 21, 2021 · 2 comments
Closed

Build fails in nixpkgs #314

Mic92 opened this issue Mar 21, 2021 · 2 comments

Comments

@Mic92
Copy link

Mic92 commented Mar 21, 2021

The nixpkgs now fails to build:

Building library for niv-0.2.19..
[ 1 of 19] Compiling Data.Aeson.Extended ( src/Data/Aeson/Extended.hs, dist/build/Data/Aeson/Extended.o, dist/build/Data/Aeson/Extended.dyn_o )
[ 2 of 19] Compiling Data.HashMap.Strict.Extended ( src/Data/HashMap/Strict/Extended.hs, dist/build/Data/HashMap/Strict/Extended.o, dist/build/Data/HashMap/Strict/Extended.dyn_o )
[ 3 of 19] Compiling Niv.Logger       ( src/Niv/Logger.hs, dist/build/Niv/Logger.o, dist/build/Niv/Logger.dyn_o )
[ 4 of 19] Compiling Data.Text.Extended ( src/Data/Text/Extended.hs, dist/build/Data/Text/Extended.o, dist/build/Data/Text/Extended.dyn_o )
[ 5 of 19] Compiling Niv.GitHub.API   ( src/Niv/GitHub/API.hs, dist/build/Niv/GitHub/API.o, dist/build/Niv/GitHub/API.dyn_o )
[ 6 of 19] Compiling Niv.Update       ( src/Niv/Update.hs, dist/build/Niv/Update.o, dist/build/Niv/Update.dyn_o )
[ 7 of 19] Compiling Niv.Sources      ( src/Niv/Sources.hs, dist/build/Niv/Sources.o, dist/build/Niv/Sources.dyn_o )
[ 8 of 19] Compiling Niv.Sources.Test ( src/Niv/Sources/Test.hs, dist/build/Niv/Sources/Test.o, dist/build/Niv/Sources/Test.dyn_o )
[ 9 of 19] Compiling Niv.GitHub       ( src/Niv/GitHub.hs, dist/build/Niv/GitHub.o, dist/build/Niv/GitHub.dyn_o )
[10 of 19] Compiling Niv.GitHub.Test  ( src/Niv/GitHub/Test.hs, dist/build/Niv/GitHub/Test.o, dist/build/Niv/GitHub/Test.dyn_o )
[11 of 19] Compiling Niv.Cmd          ( src/Niv/Cmd.hs, dist/build/Niv/Cmd.o, dist/build/Niv/Cmd.dyn_o )
[12 of 19] Compiling Niv.Local.Cmd    ( src/Niv/Local/Cmd.hs, dist/build/Niv/Local/Cmd.o, dist/build/Niv/Local/Cmd.dyn_o )
[13 of 19] Compiling Niv.GitHub.Cmd   ( src/Niv/GitHub/Cmd.hs, dist/build/Niv/GitHub/Cmd.o, dist/build/Niv/GitHub/Cmd.dyn_o )
[14 of 19] Compiling Niv.Git.Cmd      ( src/Niv/Git/Cmd.hs, dist/build/Niv/Git/Cmd.o, dist/build/Niv/Git/Cmd.dyn_o )
[15 of 19] Compiling Niv.Git.Test     ( src/Niv/Git/Test.hs, dist/build/Niv/Git/Test.o, dist/build/Niv/Git/Test.dyn_o )
[16 of 19] Compiling Niv.Update.Test  ( src/Niv/Update/Test.hs, dist/build/Niv/Update/Test.o, dist/build/Niv/Update/Test.dyn_o )
[17 of 19] Compiling Niv.Test         ( src/Niv/Test.hs, dist/build/Niv/Test.o, dist/build/Niv/Test.dyn_o )
[18 of 19] Compiling Paths_niv        ( dist/build/autogen/Paths_niv.hs, dist/build/Paths_niv.o, dist/build/Paths_niv.dyn_o )
[19 of 19] Compiling Niv.Cli          ( src/Niv/Cli.hs, dist/build/Niv/Cli.o, dist/build/Niv/Cli.dyn_o )

src/Niv/Cli.hs:63:41: error:
    • Couldn't match expected type ‘Opts.ParseError’
                  with actual type ‘Maybe String -> Opts.ParseError’
    • Probable cause: ‘Opts.ShowHelpText’ is applied to too few arguments
      In the third argument of ‘Opts.parserFailure’, namely
        ‘Opts.ShowHelpText’
      In the second argument of ‘($)’, namely
        ‘Opts.parserFailure pprefs pinfo Opts.ShowHelpText mempty’
      In the expression:
        Opts.Failure
          $ Opts.parserFailure pprefs pinfo Opts.ShowHelpText mempty
   |
63 |         Opts.parserFailure pprefs pinfo Opts.ShowHelpText mempty
   |                                         ^^^^^^^^^^^^^^^^^
@sternenseemann
Copy link

Should be fixed in NixOS/nixpkgs#117023: We override niv to use an older version of optparse-applicative: NixOS/nixpkgs@b37db39

Fixing #312 would be nice, so we can remove that again.

@Mic92
Copy link
Author

Mic92 commented Mar 21, 2021

Ok. closing this because of the other issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants