Skip to content

Commit 5d4bcd8

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

overlays/haskell.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,9 @@ 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 = callProjectResults.src + final.lib.removePrefix "${callProjectResults.src.origSubDir or ""}/." p.pkg-src.path;
739+
src = if final.lib.hasPrefix "/" p.pkg-src.path
740+
then p.pkg-src.path
741+
else callProjectResults.src + final.lib.removePrefix "${callProjectResults.src.origSubDir or ""}/." p.pkg-src.path;
740742
} // {
741743
flags = p.flags;
742744
components = getComponents cabal2nix.components hsPkgs p;

0 commit comments

Comments
 (0)