forked from k0001/hs-libsodium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libsodium.cabal
56 lines (50 loc) · 1.52 KB
/
libsodium.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
cabal-version: 2.4
name: libsodium
version: 1.0.18.3
license: ISC
license-file: LICENSE
extra-source-files: README.md CHANGELOG.md
author: Renzo Carbonara
maintainer: renλren.zone
copyright: Copyright (c) Renzo Carbonara 2020
category: Cryptography
build-type: Simple
synopsis: Low-level bindings to the libsodium C library
description: Low-level bindings to the libsodium C library
homepage: https://github.com/k0001/hs-libsodium
bug-reports: https://github.com/k0001/hs-libsodium/issues
tested-with: GHC ==9.2.6
extra-source-files: c/*.h c/*.c
flag use-build-tool-depends
description: Sometimes Cabal doesn't see build tools listed in
build-tool-depends if they are installed by means other than
cabal-install (e.g., Nix). In those cases, not even mentioning
the tools in build-tool-depends prevents cabal-install from
attempting to reinstall them. This is an automatic flag, so
in theory Cabal will figure out what it needs to do.
default: True
manual: False
common basic
default-language: GHC2021
ghc-options: -Wall -Werror=incomplete-patterns
build-depends: base == 4.*
pkgconfig-depends: libsodium == 1.0.18
if flag(use-build-tool-depends)
build-tool-depends: c2hs:c2hs
library
import: basic
hs-source-dirs: hs
exposed-modules: Libsodium
other-modules: Libsodium.Constants
c-sources: c/hs_libsodium.c
include-dirs: c/
test-suite test
import: basic
type: exitcode-stdio-1.0
main-is: test.hs
build-depends:
hedgehog,
libsodium,
tasty,
tasty-hedgehog,
tasty-hunit,