-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
bugSomething isn't workingSomething isn't workingcase for testsThings we must automate testing ofThings we must automate testing of
Description
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:
haskell-flake/haskell-project.nix
Lines 36 to 50 in 34641d4
| 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) |
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcase for testsThings we must automate testing ofThings we must automate testing of