haskell-lib: Add overrideSrc helper

This commit is contained in:
Shea Levy 2017-04-08 16:21:57 -04:00
parent b4820d4948
commit a6c39ed207
1 changed files with 3 additions and 0 deletions

View File

@ -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; });
}