Seems to be a regression from #57 #42
> No cabal.project file or cabal file matching the default glob './*.cabal' was found.
> Please create a package description file <pkgname>.cabal or a cabal.project file referencing the packages you want to build.
Turns out that the use of buildFromCabalSdist is the culprit:
|
let |
|
fromSdist = self.buildFromCabalSdist or (builtins.trace "Your version of Nixpkgs does not support hs.buildFromCabalSdist yet." (pkg: pkg)); |
|
filterSrc = name: src: lib.cleanSourceWith { inherit src name; filter = path: type: true; }; |
|
in |
|
lib.mapAttrs |
|
(name: value: |
|
let |
|
# callCabal2nix does not need a filtered source. It will |
|
# only pick out the cabal and/or hpack file. |
|
pkgProto = self.callCabal2nix name value.root { }; |
|
pkgFiltered = pkgs.haskell.lib.overrideSrc pkgProto { |
|
src = filterSrc name value.root; |
|
}; |
|
in |
|
fromSdist pkgFiltered) |
Seems to be a regression from
#57#42Turns out that the use of
buildFromCabalSdistis the culprit:haskell-flake/haskell-project.nix
Lines 36 to 50 in 34641d4