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

Can't install on Nixos #59

Open
qrilka opened this issue Jun 2, 2018 · 4 comments
Open

Can't install on Nixos #59

qrilka opened this issue Jun 2, 2018 · 4 comments

Comments

@qrilka
Copy link

qrilka commented Jun 2, 2018

Probably that could be filed to nixpkgs repo but maybe it's something of a known issue.
I'm using nixos-18.03, trying to install stackage2nix with nix-env -f "<nixpkgs>" -i -A haskellPackages.stackage2nix, fails with

Using Cabal-2.2.0.0 compiled by ghc-8.2
Using compiler: ghc-8.2.2
Using install prefix:
/nix/store/rzx2v29a4xxh5c7g8zj1jzjfrvylq041-stackage2nix-0.6.1
Executables installed in:
/nix/store/rzx2v29a4xxh5c7g8zj1jzjfrvylq041-stackage2nix-0.6.1/bin
Libraries installed in:
/nix/store/rzx2v29a4xxh5c7g8zj1jzjfrvylq041-stackage2nix-0.6.1/lib/ghc-8.2.2/stackage2nix-0.6.1
Dynamic Libraries installed in:
/nix/store/rzx2v29a4xxh5c7g8zj1jzjfrvylq041-stackage2nix-0.6.1/lib/ghc-8.2.2/x86_64-linux-ghc-8.2.2
Private executables installed in:
/nix/store/rzx2v29a4xxh5c7g8zj1jzjfrvylq041-stackage2nix-0.6.1/libexec/x86_64-linux-ghc-8.2.2/stackage2nix-0.6.1
Data files installed in:
/nix/store/rzx2v29a4xxh5c7g8zj1jzjfrvylq041-stackage2nix-0.6.1/share/x86_64-linux-ghc-8.2.2/stackage2nix-0.6.1
Documentation installed in:
/nix/store/bbynd4lcpyf9xm6mqlsf59rlnlb8jv6d-stackage2nix-0.6.1-doc/share/doc
Configuration files installed in:
/nix/store/rzx2v29a4xxh5c7g8zj1jzjfrvylq041-stackage2nix-0.6.1/etc
No alex found
Using ar found on system at:
/nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 7.3.0 given by user at:
/nix/store/gqg2vrcq7krqi9rrl6pphvsg81sb8pjw-gcc-wrapper-7.3.0/bin/gcc
Using ghc version 8.2.2 found on system at:
/nix/store/hjvv3ayhyddz2piydw8rra85pczbsz9j-ghc-8.2.2/bin/ghc
Using ghc-pkg version 8.2.2 found on system at:
/nix/store/hjvv3ayhyddz2piydw8rra85pczbsz9j-ghc-8.2.2/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.18.1 found on system at:
/nix/store/hjvv3ayhyddz2piydw8rra85pczbsz9j-ghc-8.2.2/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/hjvv3ayhyddz2piydw8rra85pczbsz9j-ghc-8.2.2/bin/hpc
Using hsc2hs version 0.68.2 found on system at:
/nix/store/hjvv3ayhyddz2piydw8rra85pczbsz9j-ghc-8.2.2/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/61pyr6v0zpypaicz1n8gk63agm8128b4-hscolour-1.24.2/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/cmxaqb5cbzy4jk26na842n6hy1s4yn19-binutils-wrapper-2.28.1/bin/ld
No lhc found
No lhc-pkg found
No pkg-config found
Using runghc version 8.2.2 found on system at:
/nix/store/hjvv3ayhyddz2piydw8rra85pczbsz9j-ghc-8.2.2/bin/runghc
Using strip version 2.28 found on system at:
/nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
Using tar found on system at:
/nix/store/2p00w952ljb1172nsf3jm7nsjgsw5qpw-gnutar-1.30/bin/tar
No uhc found
*** abort because of serious configure-time warning from Cabal
builder for '/nix/store/vi5ny3sijd4h51g2ag30k07fh6ix9cch-stackage2nix-0.6.1.drv' failed with exit code 1
error: build of '/nix/store/vi5ny3sijd4h51g2ag30k07fh6ix9cch-stackage2nix-0.6.1.drv' failed
@qrilka
Copy link
Author

qrilka commented Jun 2, 2018

As I understand #57 fixes that, but why isn't it fixed in nixpkgs?

@4e6
Copy link
Contributor

4e6 commented Jun 2, 2018

stackage2nix build is only tested against a specific haskell packages set, based on Stackage LTS.

To install stackage2nix, please use the Stackage overlay https://github.com/typeable/nixpkgs-stackage or the nix expression from this repo https://github.com/typeable/stackage2nix#stackage2nix-wrapper

@qrilka
Copy link
Author

qrilka commented Jun 2, 2018

Thanks, does it mean that stackage2nix should be excluded from nixpkgs?

@4e6
Copy link
Contributor

4e6 commented Jun 2, 2018

It could be, if no one is interested in maintaining it.

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