diff options
-rw-r--r-- | pkgs/development/haskell-modules/default.nix | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/pkgs/development/haskell-modules/default.nix b/pkgs/development/haskell-modules/default.nix index 7205f777bcf2..df17c769ea2d 100644 --- a/pkgs/development/haskell-modules/default.nix +++ b/pkgs/development/haskell-modules/default.nix @@ -84,14 +84,7 @@ let callHackage = name: version: self.callPackage (hackage2nix name version); # Creates a Haskell package from a source package by calling cabal2nix on the source. - callCabal2nix = name: src: args: - let - # Filter out files other than the cabal file. This ensures - # that we don't create new derivations even when the cabal - # file hasn't changed. - justCabal = builtins.filterSource (path: type: pkgs.lib.hasSuffix ".cabal" path) src; - drv = self.callPackage (haskellSrc2nix { inherit name; src = justCabal; }) args; - in overrideCabal drv (drv': { inherit src; }); # Restore the desired src. + callCabal2nix = name: src: self.callPackage (haskellSrc2nix { inherit src name; }); ghcWithPackages = selectFrom: withPackages (selectFrom self); |