package.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: ShaarliHasFun
  2. version: 0.0.1.0
  3. github: "mro/ShaarliHasFun"
  4. license: GPL-3
  5. author: "0x4c.de"
  6. maintainer: "ShaarliHasFun@0x4c.de"
  7. copyright: "2019 Marcus Rohrmoser"
  8. extra-source-files:
  9. - README.md
  10. - ChangeLog.md
  11. # Metadata used when publishing your package
  12. # synopsis: 🌺 Pure functional successor of the minimalist sebsauvage-shaarli, now in Haskell. λλ=
  13. # category: Web
  14. # To avoid duplicated efforts in documentation and dealing with the
  15. # complications of embedding Haddock markup inside cabal files, it is
  16. # common to point users to the README.md file.
  17. description: 🌺 Pure functional successor of the minimalist sebsauvage-shaarli, now in Haskell. λλ=
  18. dependencies:
  19. - base >= 4.7 && < 5
  20. library:
  21. source-dirs: src
  22. executables:
  23. ShaarliHasFun.cgi:
  24. main: Main.hs
  25. source-dirs: app
  26. ghc-options:
  27. - -threaded
  28. # - -rtsopts
  29. # - -with-rtsopts=-N
  30. # https://github.com/commercialhaskell/stack/issues/3420#issuecomment-481980763
  31. # evtl. later https://github.com/NixOS/nixpkgs/issues/43795
  32. - -static
  33. - -O2
  34. cc-options: -static
  35. ld-options: -static -pthread
  36. dependencies:
  37. - ShaarliHasFun
  38. tests:
  39. ShaarliHasFun-test:
  40. main: Spec.hs
  41. source-dirs: test
  42. ghc-options:
  43. - -threaded
  44. - -rtsopts
  45. - -with-rtsopts=-N
  46. dependencies:
  47. - ShaarliHasFun