aboutsummaryrefslogtreecommitdiff
path: root/package.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'package.yaml')
-rw-r--r--package.yaml84
1 files changed, 84 insertions, 0 deletions
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