From 42519a0f8797e98f576a5e31e5de9de521ff8950 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Thu, 7 Dec 2017 15:26:51 -0500 Subject: callCabal2nix: Take advantage of new hpack support. --- pkgs/development/haskell-modules/make-package-set.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkgs/development/haskell-modules') diff --git a/pkgs/development/haskell-modules/make-package-set.nix b/pkgs/development/haskell-modules/make-package-set.nix index 61043252155e..7ac0ef509f41 100644 --- a/pkgs/development/haskell-modules/make-package-set.nix +++ b/pkgs/development/haskell-modules/make-package-set.nix @@ -151,7 +151,9 @@ in package-set { inherit pkgs stdenv callPackage; } self // { # `fetchFromGitHub`. overrideCabal (self.callPackage (haskellSrc2nix { inherit name; - src = builtins.filterSource (path: type: pkgs.lib.hasSuffix ".cabal" path) src; + src = builtins.filterSource (path: type: + pkgs.lib.hasSuffix "${name}.cabal" path || pkgs.lib.hasSuffix "package.yaml" path + ) src; }) args) (_: { inherit src; }); # : Map Name (Either Path VersionNumber) -> HaskellPackageOverrideSet -- cgit 1.4.1