callCabal2nix: Take advantage of new hpack support.
commit42519a0f8797e98f576a5e31e5de9de521ff8950
authorShea Levy <shea@shealevy.com>
dateThu 7 Dec 2017, 15:26 (9 years ago)
parentbed3695
pkgs/development/haskell-modules/make-package-set.nix+3−1
@@ -151,7 +151,9 @@ in package-set { inherit pkgs stdenv callPackage; } self // {
151151 # `fetchFromGitHub`.
152152 overrideCabal (self.callPackage (haskellSrc2nix {
153153 inherit name;
154− src = builtins.filterSource (path: type: pkgs.lib.hasSuffix ".cabal" path) src;
154+ src = builtins.filterSource (path: type:
155+ pkgs.lib.hasSuffix "${name}.cabal" path || pkgs.lib.hasSuffix "package.yaml" path
156+ ) src;
155157 }) args) (_: { inherit src; });
156158
157159 # : Map Name (Either Path VersionNumber) -> HaskellPackageOverrideSet