haskell-nix / hnix

A Haskell re-implementation of the Nix expression language
https://hackage.haskell.org/package/hnix
BSD 3-Clause "New" or "Revised" License
741 stars 114 forks source link

Build chain error if returnShellEnv is true #1070

Closed soulomoon closed 2 years ago

soulomoon commented 2 years ago

If I enable returnShellEnv = true

error: attribute 'override' missing

       at /nix/store/di36mqc6y19ivaa4qjrb2l82c6dqg7m3-source/pkgs/development/haskell-modules/lib/compose.nix:38:28:

           37|    */
           38|   overrideCabal = f: drv: (drv.override (args: args // {
             |                            ^
           39|     mkDerivation = drv: (args.mkDerivation drv).override f;

Originally posted by @soulomoon in https://github.com/haskell-nix/hnix/issues/1069#issuecomment-1156602676