Skip to content

Commit d91fcf0

Browse files
committed
Fix absolute paths
1 parent 5d4bcd8 commit d91fcf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

overlays/haskell.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@ final: prev: {
736736
in builtins.removeAttrs cabal2nix ["src"] // final.lib.optionalAttrs (p ? pkg-src-sha256) {
737737
sha256 = p.pkg-src-sha256;
738738
} // final.lib.optionalAttrs (p.pkg-src.type or "" == "local") {
739-
src = if final.lib.hasPrefix "/" p.pkg-src.path
740-
then p.pkg-src.path
739+
src = if final.lib.hasPrefix "/" p.pkg-src.path && !final.lib.hasPrefix "${callProjectResults.src.origSubDir or ""}/." p.pkg-src.path
740+
then __trace p.pkg-src.path p.pkg-src.path
741741
else callProjectResults.src + final.lib.removePrefix "${callProjectResults.src.origSubDir or ""}/." p.pkg-src.path;
742742
} // {
743743
flags = p.flags;

0 commit comments

Comments
 (0)