From a6c39ed207e5d6dbdf28ab812286e123505ac71f Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 8 Apr 2017 16:21:57 -0400 Subject: [PATCH] haskell-lib: Add overrideSrc helper --- pkgs/development/haskell-modules/lib.nix | 3 +++ 1 file changed, 3 insertions(+) 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; }); + }