# your existing package definition...
extraConfigureFlags = [ "-fdevelopment" ];
})
This will ensure cabal configure is called with -fdevelopment and all of the other arguments needed for the nix build (like the locations of ghc, cabal, ghc package dir, etc).
If you already have it installed you should be ok with just adding the flag I mentioned, but otherwise someone needs to look into fixing the package.
Hope that helps,
Eric