diff --git a/srcpkgs/hlint/patches/data.patch b/srcpkgs/hlint/patches/data.patch new file mode 100644 index 00000000000..bdfac204f47 --- /dev/null +++ b/srcpkgs/hlint/patches/data.patch @@ -0,0 +1,13 @@ +diff --git src/CmdLine.hs src/CmdLine.hs +index 8c3d530..ccf7aac 100644 +--- src/CmdLine.hs ++++ src/CmdLine.hs +@@ -52,7 +52,7 @@ automatic cmd = case cmd of + b <- doesDirectoryExist x + if b then return cmd{cmdDataDir=x} else do + exe <- getExecutablePath +- return cmd{cmdDataDir = takeDirectory exe "data"} ++ return cmd{cmdDataDir = takeDirectory exe "../share/hlint/data"} + git cmd + | cmdGit cmd = do + mgit <- findExecutable "git" diff --git a/srcpkgs/hlint/template b/srcpkgs/hlint/template index 03c2a800ad5..4fa278407a9 100644 --- a/srcpkgs/hlint/template +++ b/srcpkgs/hlint/template @@ -1,19 +1,22 @@ # Template file for 'hlint' pkgname=hlint -version=2.1.8 -revision=1 +version=2.1.11 +revision=3 build_style=haskell-stack -nocross=yes # Can't yet cross compile Haskell -stackage="lts-12.0" +stackage="lts-13.2" short_desc="Haskell source code suggestions" maintainer="Inokentiy Babushkin " license="BSD-3-Clause" homepage="https://github.com/ndmitchell/hlint" -distfiles="https://github.com/ndmitchell/${pkgname}/archive/v${version}.tar.gz" -checksum=ad94f0a5baf05b83603c4ef26c426c2769047c83dd11b659d6bf00bccf895a04 +distfiles="https://github.com/ndmitchell/hlint/archive/v${version}.tar.gz" +checksum=edb6e18e9b8abceb6326212c4c20163516e88e80da734a504065b9fe833cccc4 +nocross=yes # Can't yet cross compile Haskell nopie_files="/usr/bin/hlint" post_install() { rm -f ${DESTDIR}/usr/bin/engine + vmkdir usr/share/hlint + vcopy data usr/share/hlint + vman data/hlint.1 vlicense LICENSE }