Closed YiweiNiu closed 3 years ago
That is indeed a weird one. I wonder if it has to do with the age of CentOS 7 vs. 8. Can you try to edit the GHC version in the default.nix
file? Instead of ghc8104
, can you change it to ghc881
and rerun it (there may be some dependencies that change though which you might need to jailbreak). If that doesn't work for the same reason (ghc-pkg
) try another older version of GHC: https://www.haskell.org/ghc/download.html (removing the periods for the version to put in the default.nix
file).
Thank you for your quick reply!
Instead of ghc8104, can you change it to ghc881 and rerun it
Then I got the following error.
$ nix-env -f default.nix -i too-many-cells
error: attribute 'ghc881' missing
at /T02Data/niuyw/software/too-many-cells/default.nix:31:14:
30| # Haskell compiler
31| compiler = pkgs.haskell.packages."${compilerVersion}";
| ^
32|
(use '--show-trace' to show detailed location information)
When I changed it to ghc801
, the error was the same.
That means that the particular GHC version is too old for that snapshot. I recently updated the nixpkgs snapshot, so try commit de5aeaf1d71c0d00d3c593c7b73ae737c2372dbf and see if that works.
After switching to commit de5aeaf
, the too-many-cells
could be successfully installed through nix-env
.
Thank you so much.
Hi,
I was trying to install
too-many-cells
withnix-env
, but I encountered the following error.The nix version
I am not familiar with
nix
, and could not find anything related though Google.Could you please help me with this?
Best wishes, Yiwei