callCabal2nix: Take advantage of new hpack support.
This commit is contained in:
parent
bed3695848
commit
42519a0f87
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue