Skip to content

Commit 4cec161

Browse files
committed
Fix subDir
1 parent 2ada9c4 commit 4cec161

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
@@ -757,10 +757,10 @@ final: prev: {
757757
then p.pkg-src.path
758758
else haskellLib.appendSubDir {
759759
inherit (callProjectResults) src;
760-
subDir = final.lib.removePrefix "/" (final.lib.removeSuffix "/." (final.lib.removeSuffix "/." (
760+
subDir = final.lib.removePrefix "./" (final.lib.removePrefix "/" (final.lib.removeSuffix "/." (final.lib.removeSuffix "/." (
761761
if final.lib.hasPrefix ".${callProjectResults.src.origSubDir or ""}/" (p.pkg-src.path + "/")
762762
then final.lib.removePrefix ".${callProjectResults.src.origSubDir or ""}" p.pkg-src.path
763-
else throw "Unexpected path ${p.pkg-src.path} expected it to start with .${callProjectResults.src.origSubDir or ""}")));
763+
else throw "Unexpected path ${p.pkg-src.path} expected it to start with .${callProjectResults.src.origSubDir or ""}"))));
764764
includeSiblings = true; # Filtering sibling dirs of the package dir is done in the
765765
# component builder so that relative paths can be used to
766766
# reference project directories not in the package subDir.

0 commit comments

Comments
 (0)