It's expensive and slow to evaluate the Nix derivation expression even when the package is already built
This makes it impossible to install the package on low-memory systems. There's some Haskell.nix documentation about "materializing" some Nix expressions which cut down on this cost. Try them out. See if we can get the evaluation under a GB or so.