-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllama-cpp-bindings.cabal
More file actions
73 lines (66 loc) · 1.78 KB
/
Copy pathllama-cpp-bindings.cabal
File metadata and controls
73 lines (66 loc) · 1.78 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cabal-version: 3.4
name: llama-cpp-bindings
version: 0.1.0.0
-- A short (one-line) description of the package.
-- synopsis:
-- A longer description of the package.
-- description:
license: AGPL-3.0-only
license-file: LICENSE
author: Dave Della Costa
maintainer: ddellacosta@gmail.com
category: Development
build-type: Simple
extra-doc-files: CHANGELOG.md
-- extra-source-files: llama.cpp
common shared
ghc-options: -Wall
default-language: GHC2021
build-depends:
base ^>= 4.17.1.0
, lens ^>= 5.2.2
, mtl ^>= 2.2.2
, optparse-applicative ^>= 0.17.0.0
, pipes ^>= 4.3.16
, text ^>= 2.0.2
, vector ^>= 0.12.3.1
default-extensions:
DeriveGeneric
, FunctionalDependencies
, LambdaCase
, OverloadedStrings
, StrictData
, TupleSections
library
import: shared
build-tool-depends: c2hs:c2hs
-- so apparently how this works w/nix involved is that it looks up
-- the library name via the string following `lib` ...I think?
-- https://github.com/NixOS/cabal2nix/issues/378#issuecomment-480563527
extra-libraries:
llama
stdc++
includes:
llama.h
wrapper.h
include-dirs:
cbits
c-sources:
cbits/wrapper.c
exposed-modules:
LLaMACPP
hs-source-dirs: src
default-language: GHC2021
executable examples
import: shared
build-depends: llama-cpp-bindings
hs-source-dirs: examples
main-is: Main.hs
default-language: GHC2021
test-suite llama-cpp-bindings-test
import: shared
build-depends: llama-cpp-bindings
hs-source-dirs: test
main-is: Main.hs
default-language: GHC2021
type: exitcode-stdio-1.0