From 2ad9c9745164d8b67418b1573b31bb67bf000439 Mon Sep 17 00:00:00 2001 From: Hamish Mackenzie Date: Wed, 20 Jan 2021 00:13:26 +1300 Subject: [PATCH] Use combinePath instead of + for data files. Makes sure "/" character is added when needed. --- lib/clean-cabal-component.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clean-cabal-component.nix b/lib/clean-cabal-component.nix index 143f963e98..cab204816f 100644 --- a/lib/clean-cabal-component.nix +++ b/lib/clean-cabal-component.nix @@ -64,7 +64,7 @@ in [dataDir] ++ hsSourceDirs ++ includeDirs - ++ builtins.map (f: dataDir + f) package.dataFiles + ++ builtins.map (f: combinePaths dataDir f) package.dataFiles ++ otherSourceFiles ++ builtins.map (d: combinePaths subDir d) ( # These need the subDir added