Skip to content

Commit

Permalink
callCabal2nix: Take advantage of new hpack support.
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Dec 7, 2017
1 parent bed3695 commit 42519a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/haskell-modules/make-package-set.nix
Expand Up @@ -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
Expand Down

0 comments on commit 42519a0

Please sign in to comment.