diff options
Diffstat (limited to 'pkgs/development/haskell-modules/make-package-set.nix')
-rw-r--r-- | pkgs/development/haskell-modules/make-package-set.nix | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/pkgs/development/haskell-modules/make-package-set.nix b/pkgs/development/haskell-modules/make-package-set.nix index 843d1a9694c30..3dd0194862278 100644 --- a/pkgs/development/haskell-modules/make-package-set.nix +++ b/pkgs/development/haskell-modules/make-package-set.nix @@ -161,17 +161,13 @@ let src = "${component}/${name}.cabal"; }; - # Adds a nix file as an input to the haskell derivation it - # produces. This is useful for callHackage / callCabal2nix to - # prevent the generated default.nix from being garbage collected - # (requiring it to be frequently rebuilt), which can be an - # annoyance. + # Adds a nix file derived from cabal2nix in the passthru of the derivation it + # produces. This is useful to debug callHackage / callCabal2nix by looking at + # the content of the nix file pointed by `cabal2nixDeriver`. + # However, it does not keep a reference to that file, which may be garbage + # collected, which may be an annoyance. callPackageKeepDeriver = src: args: overrideCabal (orig: { - preConfigure = '' - # Generated from ${src} - ${orig.preConfigure or ""} - ''; passthru = orig.passthru or {} // { # When using callCabal2nix or callHackage, it is often useful # to debug a failure by inspecting the Nix expression |