diff --git a/pkgs/development/haskell-modules/lib.nix b/pkgs/development/haskell-modules/lib.nix index f88f2f2cf54..0aed2211448 100644 --- a/pkgs/development/haskell-modules/lib.nix +++ b/pkgs/development/haskell-modules/lib.nix @@ -104,4 +104,7 @@ rec { triggerRebuild = drv: i: overrideCabal drv (drv: { postUnpack = ": trigger rebuild ${toString i}"; }); + overrideSrc = drv: { src, version ? drv.version }: + overrideCabal drv (_: { inherit src version; editedCabalFile = null; }); + }