Allow cabal.project* files to be symlinks (#651)
commitdb409cf3a0b10a7309a8102bb6a00d8870b9c67e
authorMaxim Koltsov <kolmax94@gmail.com>
dateThu 4 Jun 2020, 17:27 (6 years ago)
parented67395
lib/call-cabal-project-to-nix.nix+1−1
@@ -2,7 +2,7 @@
22let readIfExists = src: fileName:
33 let origSrcDir = src.origSrcSubDir or src;
44 in
5− if ((__readDir origSrcDir)."${fileName}" or "") == "regular"
5+ if builtins.elem ((__readDir origSrcDir)."${fileName}" or "") ["regular" "symlink"]
66 then __readFile (origSrcDir + "/${fileName}")
77 else null;
88in