Skip to content

Commit

Permalink
haskell-lib: Add overrideSrc helper
Browse files Browse the repository at this point in the history
(cherry picked from commit a6c39ed)
  • Loading branch information
shlevy committed Apr 9, 2017
1 parent ec7865b commit 250c890
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/haskell-modules/lib.nix
Expand Up @@ -98,4 +98,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; });

}

0 comments on commit 250c890

Please sign in to comment.