-
Notifications
You must be signed in to change notification settings - Fork 49
/
entropy.cabal
104 lines (94 loc) · 2.85 KB
/
entropy.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
cabal-version: >=1.10
name: entropy
version: 0.4.1.10
x-revision: 2
description: A mostly platform independent method to obtain cryptographically strong entropy
(RDRAND, urandom, CryptAPI, and patches welcome)
Users looking for cryptographically strong (number-theoretically
sound) PRNGs should see the 'DRBG' package too.
synopsis: A platform independent entropy source
license: BSD3
license-file: LICENSE
copyright: Thomas DuBuisson <thomas.dubuisson@gmail.com>
author: Thomas DuBuisson <thomas.dubuisson@gmail.com>
maintainer: Thomas DuBuisson <thomas.dubuisson@gmail.com>
category: Data, Cryptography
homepage: https://github.com/TomMD/entropy
bug-reports: https://github.com/TomMD/entropy/issues
stability: stable
build-type: Custom
tested-with:
GHC == 9.10.1
GHC == 9.8.2
GHC == 9.6.5
GHC == 9.4.8
GHC == 9.2.8
GHC == 9.0.2
GHC == 8.10.7
GHC == 8.8.4
GHC == 8.6.5
GHC == 8.4.4
GHC == 8.2.2
GHC == 8.0.2
extra-source-files:
./cbits/getrandom.c
./cbits/random_initialized.c
./cbits/rdrand.c
./cbits/rdrand.h
README.md
Flag DoNotGetEntropy
Description: Avoid use of the getentropy() *nix function. By default getentropy will be used
if detected during compilation (this plays poorly with cross compilation).
Default: False
Manual: True
custom-setup
setup-depends: Cabal >= 1.10 && < 3.13
, base < 5
, filepath < 1.6
, directory < 1.4
, process < 1.7
library
ghc-options: -O2
exposed-modules: System.Entropy
if impl(ghcjs) || os(ghcjs)
other-modules: System.EntropyGhcjs
else {
if os(windows)
other-modules: System.EntropyWindows
else {
other-modules: System.EntropyNix
}
}
other-extensions: CPP, ForeignFunctionInterface, BangPatterns,
ScopedTypeVariables
build-depends: base >= 4.8 && < 5, bytestring
default-language: Haskell2010
if impl(ghcjs) || os(ghcjs) {
build-depends: ghcjs-dom >= 0.9.5.0 && < 1
, jsaddle
}
else {
if arch(x86_64)
cpp-options: -Darch_x86_64
cc-options: -Darch_x86_64 -O2
-- gcc 4.8.2 on i386 fails to compile rdrand.c when using -fPIC!
c-sources: cbits/rdrand.c
include-dirs: cbits
if arch(i386)
cpp-options: -Darch_i386
cc-options: -Darch_i386 -O2
if os(windows)
build-depends: Win32 >= 2.5
cpp-options: -DisWindows
cc-options: -DisWindows
extra-libraries: advapi32
else
Build-Depends: unix
c-sources: cbits/getrandom.c cbits/random_initialized.c
}
if flag(DoNotGetEntropy) {
cc-options: -DDO_NOT_USE_GET_ENTROPY
}
source-repository head
type: git
location: https://github.com/TomMD/entropy