void-packages/srcpkgs/hlint/patches/data.patch
2021-07-27 12:46:30 +02:00

11 lines
462 B
Diff

--- a/src/CmdLine.hs
+++ b/src/CmdLine.hs
@@ -58,7 +58,7 @@
b <- doesDirectoryExist x
if b then pure cmd{cmdDataDir=x} else do
exe <- getExecutablePath
- pure cmd{cmdDataDir = takeDirectory exe </> "data"}
+ pure cmd{cmdDataDir = takeDirectory exe </> "../share/hlint/data"}
git cmd
| cmdGit cmd = do
mgit <- findExecutable "git"