When trying to build a project with `stack --nix build` I get a configure error: 
                                                                                                                                                           
>    checking build system type... x86_64-unknown-linux-gnu                                                                                                                                                                          
    checking host system type... x86_64-unknown-linux-gnu                                                                                                                                                                           
    checking for gcc... gcc                                                                                                                                                                                                         
    checking whether the C compiler works... no                                                                                                                                                                                     
    configure: error: in `/run/user/1000/stack10423/network-2.6.3.1':                                                                                                                                                               
    configure: error: C compiler cannot create executables