We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c04191e commit a9fd2b6Copy full SHA for a9fd2b6
overlays/haskell.nix
@@ -752,8 +752,9 @@ final: prev: {
752
let cabal2nix = import (nixFilesDir + "/.plan.nix/${p.pkg-name}.nix") (args // { hsPkgs = {}; });
753
in final.lib.optionalAttrs (p ? pkg-src-sha256) {
754
sha256 = p.pkg-src-sha256;
755
- } // final.lib.optionalAttrs (p.pkg-src.type or "" == "local") {
+ } // final.lib.optionalAttrs (p.pkg-src.type or "" == "local" && cabal2nix ? cabal-generator) {
756
inherit (cabal2nix) cabal-generator;
757
+ } // final.lib.optionalAttrs (p.pkg-src.type or "" == "local") {
758
src = if final.lib.hasPrefix "/" p.pkg-src.path
759
then p.pkg-src.path
760
else callProjectResults.src + final.lib.removeSuffix "/." (final.lib.removeSuffix "/." (
0 commit comments