Re:Nix and NixOS, my pain points
by delroth on Sunday December 25, 2022 @09:01AM
(#34127287)
As usual for ChatGPT this is full of mistakes and bad code. The buildPhase and installPhase it writes are completely unnecessary and worse than the default, the configurePhase might work in some cases but most likely won't, and it's unnecessary when instead autoreconfHook should be used, stdenv/autoconf should be taken as an argument for the function returning the derivation, autoconf should be a nativeBuildInput, make is already in stdenv, etc.
[ Parent
| on HN ]
You're also supposed to call the pre and post hooks for these phases.