nix-community / napalm

Support for building npm packages in Nix and lightweight npm registry [maintainer=?]
MIT License
104 stars 17 forks source link

Remove reliance on import from derivation #40

Closed sternenseemann closed 2 years ago

sternenseemann commented 2 years ago

callCabal2nix runs cabal2nix internally to obtain a package description for a given Cabal file. Since this uses IFD, the single threaded evaluator has to stop until that build has finished. This is usually a slight annoyance, but can in the worst case require to build GHC if binary cache is lacking.

We can avoid this by simply manually generating the file and checking it in.

sternenseemann commented 2 years ago

Tested hello-world and hello-world-deps and a personal project of mine with this patch.