Skip to content

Commit

Permalink
Add c2hs to build-tool-depends
Browse files Browse the repository at this point in the history
Notice with this change, `cabal` can't see the `c2hs` provided by Nix as
specified through `libsodium/pkg.nix`'s
`libraryToolDepends` and `testToolDepends`. This still needs solving.

See issue #2
  • Loading branch information
k0001 committed Jun 13, 2020
1 parent 28fa91b commit 0bc96db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libsodium/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Version 1.0.18.2

* Add missing dependency on `c2hs`.


# Version 1.0.18.1

* Improve support for opaque C structs (`Storable`, `Ptr`, allocation).
Expand Down
1 change: 1 addition & 0 deletions libsodium/libsodium.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ common basic
ghc-options: -Wall -Werror=incomplete-patterns
build-depends: base == 4.*
pkgconfig-depends: libsodium == 1.0.18
build-tool-depends: c2hs:c2hs

library
import: basic
Expand Down
1 change: 1 addition & 0 deletions libsodium/pkg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mkDerivation {
libraryPkgconfigDepends = [ libsodium ];
testHaskellDepends = [ base hedgehog tasty tasty-hedgehog tasty-hunit ];
testPkgconfigDepends = [ libsodium ];
testToolDepends = [ c2hs ];
homepage = "https://github.com/k0001/hs-libsodium";
description = "Low-level bindings to the libsodium C library";
license = stdenv.lib.licenses.isc;
Expand Down

0 comments on commit 0bc96db

Please sign in to comment.