dear-imgui.hs/Setup.hs
2024-02-25 12:19:39 +01:00

15 lines
497 B
Haskell

import Distribution.Simple
main :: IO ()
main = defaultMainWithHooks simpleUserHooks
{ postCopy = copyLib
}
copyLib :: :: Args -> CopyFlags -> PackageDescription -> LocalBuildInfo -> IO ()
copyExtLib _ flags pkg_descr lbi = do
let libPref = libdir . absoluteInstallDirs pkg_descr lbi
. fromFlag . copyDest
$ flags
let verbosity = fromFlag $ copyVerbosity flags
rawSystemExit verbosity "cp" ["libHSdear-imgui-2.0.0-inplace-ghc8.10.7.so", libPref]