diff options
-rw-r--r-- | Cana.cabal | 20 | ||||
-rw-r--r-- | LICENSE | 2 | ||||
-rw-r--r-- | package.yaml | 84 |
3 files changed, 104 insertions, 2 deletions
@@ -23,6 +23,10 @@ source-repository head type: git location: https://github.com/githubuser/Cana +flag static + manual: True + default: False + library exposed-modules: Cana @@ -45,9 +49,12 @@ library , mime-types , network , network-uri + , process + , stringsearch , text , tls , transformers + , utf8-string , x509 , x509-store default-language: Haskell2010 @@ -58,7 +65,6 @@ executable Cana-exe Paths_Cana hs-source-dirs: app - ghc-options: -threaded -rtsopts -with-rtsopts=-N build-depends: Cana , base >=4.7 && <5 @@ -69,11 +75,20 @@ executable Cana-exe , mime-types , network , network-uri + , process + , stringsearch , text , tls , transformers + , utf8-string , x509 , x509-store + if flag(static) + ghc-options: -threaded -rtsopts -with-rtsopts=-N -static -O0 -optl-fuse-ld=bfd + cc-options: -static + ld-options: -static -pthread + else + ghc-options: -threaded -rtsopts -with-rtsopts=-N default-language: Haskell2010 test-suite Cana-test @@ -94,9 +109,12 @@ test-suite Cana-test , mime-types , network , network-uri + , process + , stringsearch , text , tls , transformers + , utf8-string , x509 , x509-store default-language: Haskell2010 @@ -1,4 +1,4 @@ -Copyright Author name here (c) 2021 +Copyright Daniel Schadt (c) 2021 All rights reserved. diff --git a/package.yaml b/package.yaml new file mode 100644 index 0000000..ae262e1 --- /dev/null +++ b/package.yaml @@ -0,0 +1,84 @@ +name: Cana +version: 0.1.0.0 +git: "https://git.kingdread.de/cgit.cgi/Cana" +license: BSD-3 +author: "Daniel Schadt" +copyright: "2021 Daniel Schadt" +homepage: "https://git.kingdread.de/cgit.cgi/Cana/about/" + +extra-source-files: +- README.md +- ChangeLog.md + +# Metadata used when publishing your package +# synopsis: Short description of your package +# category: Web + +# To avoid duplicated efforts in documentation and dealing with the +# complications of embedding Haddock markup inside cabal files, it is +# common to point users to the README.md file. +description: Project Gemini server implementation, see the README for more details. + +dependencies: +- base >= 4.7 && < 5 +- bytestring +- data-default +- network +- network-uri +- tls +- transformers +- x509 +- x509-store +- filepath +- directory +- mime-types +- text +- process +- stringsearch +- utf8-string + +library: + source-dirs: src + +flags: + static: + manual: true + default: false + +executables: + Cana-exe: + main: Main.hs + source-dirs: app + when: + - condition: flag(static) + then: + ghc-options: + - -threaded + - -rtsopts + - -with-rtsopts=-N + - -static + - -O0 + - -optl-fuse-ld=bfd + ld-options: + - -static + - -pthread + cc-options: + - -static + else: + ghc-options: + - -threaded + - -rtsopts + - -with-rtsopts=-N + dependencies: + - Cana + +tests: + Cana-test: + main: Spec.hs + source-dirs: test + ghc-options: + - -threaded + - -rtsopts + - -with-rtsopts=-N + dependencies: + - Cana |