aristanetworks / nix-serve-ng

A drop-in replacement for nix-serve that is faster and more reliable
Other
156 stars 14 forks source link

Fix #19 #20

Open angerman opened 1 year ago

angerman commented 1 year ago

This fixes #19 by downgrading the compiler to 8.10 (I still don't think 9.0 should be used in production). bytestring < 0.11.4 (which as of today has not been released to https://hackage.haskell.org/package/bytestring), is broken, as per haskell/bytestring#538. This in turn shows up in yesodweb/wai#894, and ultimately causes #19.

angerman commented 1 year ago

This will now use bytestring-0.10.12.0 instead of bytestring-0.11.3.1

angerman commented 1 year ago

Ok. This does not work, it did work in my shell because I had a newer cabal-install. However this change allows cabal2nix to parse it, but the Setup.hs that's being built by the nixpkgs haskell infra, links against the lib:Cabal shipped with GHC, and as such is incompatible. With cabal-version: 3.6

angerman commented 1 year ago

This is now a very ugly hack that breaks macOS, but works on linux. I would not have expected me to break macOS.