echidna: 2.2.3 -> 2.2.6

- move to by-name folder
- fix: runtime depends on slither-analyzer through wrapProgram

authored by hellwolf and committed by sternenseemann 47f4b53e 5a55e4af

+120 -123
+120
pkgs/by-name/ec/echidna/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + makeWrapper, 5 + haskellPackages, 6 + fetchFromGitHub, 7 + # dependencies 8 + slither-analyzer, 9 + }: 10 + 11 + haskellPackages.mkDerivation rec { 12 + pname = "echidna"; 13 + version = "2.2.6"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "crytic"; 17 + repo = "echidna"; 18 + tag = "v${version}"; 19 + sha256 = "sha256-5nzis7MXOqs0bhx2jrEexjZYZI2qY6D0D7AWO+SPs+A="; 20 + }; 21 + 22 + isExecutable = true; 23 + 24 + buildTools = with haskellPackages; [ 25 + hpack 26 + ]; 27 + 28 + executableHaskellDepends = with haskellPackages; [ 29 + # base dependencies 30 + aeson 31 + base 32 + containers 33 + directory 34 + hevm 35 + MonadRandom 36 + mtl 37 + text 38 + # library dependencies 39 + ansi-terminal 40 + async 41 + base16-bytestring 42 + binary 43 + brick 44 + bytestring 45 + data-bword 46 + data-dword 47 + deepseq 48 + exceptions 49 + extra 50 + filepath 51 + hashable 52 + html-conduit 53 + html-entities 54 + http-conduit 55 + ListLike 56 + optics 57 + optics-core 58 + process 59 + random 60 + rosezipper 61 + semver 62 + signal 63 + split 64 + strip-ansi-escape 65 + time 66 + unliftio 67 + utf8-string 68 + vector 69 + vty 70 + vty-crossplatform 71 + wai-extra 72 + warp 73 + word-wrap 74 + xml-conduit 75 + yaml 76 + # executable dependencies 77 + code-page 78 + filepath 79 + hashable 80 + optparse-applicative 81 + time 82 + with-utf8 83 + ]; 84 + 85 + executableToolDepends = [ 86 + makeWrapper 87 + ]; 88 + 89 + preConfigure = '' 90 + hpack 91 + ''; 92 + 93 + postInstall = 94 + with haskellPackages; 95 + # https://github.com/NixOS/nixpkgs/pull/304352 96 + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) '' 97 + remove-references-to -t ${warp.out} "$out/bin/echidna" 98 + remove-references-to -t ${wreq.out} "$out/bin/echidna" 99 + '' 100 + # make slither-analyzer a runtime dependency 101 + + '' 102 + wrapProgram $out/bin/echidna \ 103 + --prefix PATH : ${lib.makeBinPath [ slither-analyzer ]} 104 + ''; 105 + 106 + doHaddock = false; 107 + 108 + # tests depend on a specific version of solc 109 + doCheck = false; 110 + 111 + homepage = "https://github.com/crytic/echidna"; 112 + description = "Ethereum smart contract fuzzer"; 113 + license = lib.licenses.agpl3Plus; 114 + maintainers = with lib.maintainers; [ 115 + arturcygan 116 + hellwolf 117 + ]; 118 + platforms = lib.platforms.unix; 119 + mainProgram = "echidna"; 120 + }
-121
pkgs/tools/security/echidna/default.nix
··· 1 - { 2 - stdenv, 3 - lib, 4 - fetchpatch, 5 - mkDerivation, 6 - fetchFromGitHub, 7 - haskellPackages, 8 - slither-analyzer, 9 - }: 10 - 11 - mkDerivation ( 12 - rec { 13 - pname = "echidna"; 14 - version = "2.2.3"; 15 - 16 - src = fetchFromGitHub { 17 - owner = "crytic"; 18 - repo = "echidna"; 19 - rev = "v${version}"; 20 - sha256 = "sha256-NJ2G6EkexYE4P3GD7PZ+lLEs1dqnoqIB2zfAOD5SQ8M="; 21 - }; 22 - 23 - patches = [ 24 - # Support cross platform vty 6.x with vty-crossplatform 25 - # https://github.com/crytic/echidna/pull/1290 26 - (fetchpatch { 27 - url = "https://github.com/crytic/echidna/commit/2913b027d7e793390ed489ef6a47d23ec9b3c800.patch"; 28 - hash = "sha256-5CGD9nDbDUTG869xUybWYSvGRsrm7JP7n0WMBNYfayw="; 29 - }) 30 - ]; 31 - 32 - isExecutable = true; 33 - 34 - libraryToolDepends = with haskellPackages; [ haskellPackages.hpack ]; 35 - 36 - executableHaskellDepends = with haskellPackages; [ 37 - # package.yaml - dependencies 38 - base 39 - aeson 40 - async 41 - base16-bytestring 42 - binary 43 - bytestring 44 - code-page 45 - containers 46 - data-bword 47 - data-dword 48 - deepseq 49 - extra 50 - directory 51 - exceptions 52 - filepath 53 - hashable 54 - hevm 55 - html-entities 56 - ListLike 57 - MonadRandom 58 - mtl 59 - optparse-applicative 60 - optics 61 - optics-core 62 - process 63 - random 64 - rosezipper 65 - semver 66 - split 67 - text 68 - transformers 69 - time 70 - unliftio 71 - utf8-string 72 - vector 73 - with-utf8 74 - word-wrap 75 - yaml 76 - http-conduit 77 - html-conduit 78 - warp 79 - wai-extra 80 - xml-conduit 81 - strip-ansi-escape 82 - # package.yaml - dependencies when "!os(windows)" 83 - brick 84 - unix 85 - vty 86 - ]; 87 - 88 - # Note: there is also a runtime dependency of slither-analyzer. So, let's include it. 89 - executableSystemDepends = [ slither-analyzer ]; 90 - 91 - preConfigure = '' 92 - hpack 93 - ''; 94 - 95 - shellHook = "hpack"; 96 - 97 - doHaddock = false; 98 - 99 - # tests depend on a specific version of solc 100 - doCheck = false; 101 - 102 - description = "Ethereum smart contract fuzzer"; 103 - homepage = "https://github.com/crytic/echidna"; 104 - license = lib.licenses.agpl3Plus; 105 - maintainers = with lib.maintainers; [ 106 - arturcygan 107 - hellwolf 108 - ]; 109 - platforms = lib.platforms.unix; 110 - mainProgram = "echidna-test"; 111 - 112 - } 113 - // lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) { 114 - 115 - # https://github.com/NixOS/nixpkgs/pull/304352 116 - postInstall = with haskellPackages; '' 117 - remove-references-to -t ${warp.out} "$out/bin/echidna" 118 - remove-references-to -t ${wreq.out} "$out/bin/echidna" 119 - ''; 120 - } 121 - )
-2
pkgs/top-level/all-packages.nix
··· 1759 1759 1760 1760 dkimpy = with python3Packages; toPythonApplication dkimpy; 1761 1761 1762 - echidna = haskell.lib.compose.justStaticExecutables (haskellPackages.callPackage ../tools/security/echidna { }); 1763 - 1764 1762 esbuild = callPackage ../development/tools/esbuild { }; 1765 1763 1766 1764 esbuild_netlify = callPackage ../development/tools/esbuild/netlify.nix { };