tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
echidna: init at 1.7.2
Artur Cygan
4 years ago
af3e9c79
712600db
+64
2 changed files
expand all
collapse all
unified
split
pkgs
tools
security
echidna
default.nix
top-level
all-packages.nix
+62
pkgs/tools/security/echidna/default.nix
···
1
1
+
{ lib
2
2
+
, fetchpatch
3
3
+
, fetchFromGitHub
4
4
+
# Haskell deps
5
5
+
, mkDerivation, aeson, ansi-terminal, base, base16-bytestring, binary, brick
6
6
+
, bytestring, cborg, containers, data-dword, data-has, deepseq, directory
7
7
+
, exceptions, filepath, hashable, hevm, hpack, lens, lens-aeson, megaparsec
8
8
+
, MonadRandom, mtl, optparse-applicative, process, random, stm, tasty
9
9
+
, tasty-hunit, tasty-quickcheck, temporary, text, transformers , unix, unliftio
10
10
+
, unliftio-core, unordered-containers, vector, vector-instances, vty
11
11
+
, wl-pprint-annotated, word8, yaml , extra, ListLike, semver
12
12
+
}:
13
13
+
mkDerivation rec {
14
14
+
pname = "echidna";
15
15
+
version = "1.7.2";
16
16
+
17
17
+
src = fetchFromGitHub {
18
18
+
owner = "crytic";
19
19
+
repo = "echidna";
20
20
+
rev = "v${version}";
21
21
+
sha256 = "sha256-eFhL8Zn8204JRrF69ibPtd7VpFW63i1iVXoGwXHlqps=";
22
22
+
};
23
23
+
24
24
+
patches = [
25
25
+
(fetchpatch {
26
26
+
name = "update-hevm-to-0.47.0.patch";
27
27
+
url = "https://github.com/crytic/echidna/commit/25dfdad93d0e0dd822f22a1c1e63a0ecf2b22a23.patch";
28
28
+
sha256 = "sha256-dj3Ie+Z4zE1fgROE/KuWZXaH9knsXJi1ai3gu5zyw/E=";
29
29
+
})
30
30
+
];
31
31
+
32
32
+
isLibrary = true;
33
33
+
isExecutable = true;
34
34
+
libraryHaskellDepends = [
35
35
+
aeson ansi-terminal base base16-bytestring binary brick bytestring cborg
36
36
+
containers data-dword data-has deepseq directory exceptions filepath
37
37
+
hashable hevm lens lens-aeson megaparsec MonadRandom mtl
38
38
+
optparse-applicative process random stm temporary text transformers unix
39
39
+
unliftio unliftio-core unordered-containers vector vector-instances vty
40
40
+
wl-pprint-annotated word8 yaml extra ListLike semver
41
41
+
];
42
42
+
libraryToolDepends = [ hpack ];
43
43
+
executableHaskellDepends = libraryHaskellDepends;
44
44
+
testHaskellDepends = [
45
45
+
tasty tasty-hunit tasty-quickcheck
46
46
+
];
47
47
+
preConfigure = ''
48
48
+
hpack
49
49
+
# re-enable dynamic build for Linux
50
50
+
sed -i -e 's/os(linux)/false/' echidna.cabal
51
51
+
'';
52
52
+
shellHook = "hpack";
53
53
+
doHaddock = false;
54
54
+
# tests depend on a specific version of solc
55
55
+
doCheck = false;
56
56
+
57
57
+
description = "Ethereum smart contract fuzzer";
58
58
+
homepage = "https://github.com/crytic/echidna";
59
59
+
license = lib.licenses.agpl3Plus;
60
60
+
maintainers = with lib.maintainers; [ arturcygan ];
61
61
+
platforms = lib.platforms.unix;
62
62
+
}
+2
pkgs/top-level/all-packages.nix
···
1504
1504
1505
1505
ecdsautils = callPackage ../tools/security/ecdsautils { };
1506
1506
1507
1507
+
echidna = haskell.lib.justStaticExecutables (haskellPackages.callPackage (../tools/security/echidna) { });
1508
1508
+
1507
1509
sedutil = callPackage ../tools/security/sedutil { };
1508
1510
1509
1511
elvish = callPackage ../shells/elvish { };