packages feed

libsodium-1.0.18.3: libsodium.cabal

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,