|
2 | 2 | description = "Medusa smart-contract fuzzer"; |
3 | 3 |
|
4 | 4 | inputs = { |
5 | | - nixpkgs.url = "nixpkgs/nixos-22.11"; |
| 5 | + nixpkgs.url = "nixpkgs/nixos-24.11"; |
6 | 6 | flake-utils.url = "github:numtide/flake-utils"; |
7 | 7 | }; |
8 | 8 |
|
|
12 | 12 | pkgs = import nixpkgs { inherit system; config.allowUnfree = true; }; |
13 | 13 | pyCommon = { |
14 | 14 | format = "pyproject"; |
15 | | - nativeBuildInputs = with pkgs.python39Packages; [ pythonRelaxDepsHook ]; |
| 15 | + nativeBuildInputs = with pkgs.python3Packages; [ pythonRelaxDepsHook ]; |
16 | 16 | pythonRelaxDeps = true; |
17 | 17 | doCheck = false; |
18 | 18 | }; |
|
21 | 21 |
|
22 | 22 | packages = rec { |
23 | 23 |
|
24 | | - solc-select = pkgs.python39Packages.buildPythonPackage (pyCommon // { |
| 24 | + solc-select = pkgs.python3Packages.buildPythonPackage (pyCommon // { |
25 | 25 | pname = "solc-select"; |
26 | | - version = "1.0.3"; |
| 26 | + version = "1.0.4"; |
27 | 27 | src = builtins.fetchGit { |
28 | | - url = "git+ssh://git@github.com/crytic/solc-select"; |
29 | | - rev = "97f160611c39d46e27d6f44a5a61344e6218d584"; |
| 28 | + url = "https://github.com/crytic/solc-select.git"; |
| 29 | + rev = "8072a3394bdc960c0f652fb72e928a7eae3631da"; |
30 | 30 | }; |
31 | | - propagatedBuildInputs = with pkgs.python39Packages; [ |
| 31 | + propagatedBuildInputs = with pkgs.python3Packages; [ |
32 | 32 | packaging |
33 | 33 | setuptools |
34 | 34 | pycryptodome |
35 | 35 | ]; |
36 | 36 | }); |
37 | 37 |
|
38 | | - crytic-compile = pkgs.python39Packages.buildPythonPackage (pyCommon // rec { |
| 38 | + crytic-compile = pkgs.python3Packages.buildPythonPackage (pyCommon // rec { |
39 | 39 | pname = "crytic-compile"; |
40 | | - version = "0.3.1"; |
| 40 | + version = "0.3.7"; |
41 | 41 | src = builtins.fetchGit { |
42 | | - url = "git+ssh://git@github.com/crytic/crytic-compile"; |
43 | | - rev = "10104f33f593ab82ba5780a5fe8dd26385acd1c1"; |
| 42 | + url = "https://github.com/crytic/crytic-compile.git"; |
| 43 | + rev = "20df04f37af723eaa7fa56dc2c80169776f3bc4d"; |
44 | 44 | }; |
45 | | - propagatedBuildInputs = with pkgs.python39Packages; [ |
| 45 | + propagatedBuildInputs = with pkgs.python3Packages; [ |
46 | 46 | cbor2 |
47 | 47 | pycryptodome |
48 | 48 | setuptools |
49 | 49 | packages.solc-select |
50 | 50 | ]; |
51 | 51 | }); |
52 | 52 |
|
53 | | - slither = pkgs.python39Packages.buildPythonPackage (pyCommon // rec { |
| 53 | + slither = pkgs.python3Packages.buildPythonPackage (pyCommon // rec { |
54 | 54 | pname = "slither"; |
55 | | - version = "0.9.3"; |
| 55 | + version = "0.10.4"; |
56 | 56 | format = "pyproject"; |
57 | 57 | src = builtins.fetchGit { |
58 | | - url = "git+ssh://git@github.com/crytic/slither"; |
59 | | - rev = "e6b8af882c6419a9119bec5f4cfff93985a92f4e"; |
| 58 | + url = "https://github.com/crytic/slither.git"; |
| 59 | + rev = "aeeb2d368802844733671e35200b30b5f5bdcf5c"; |
60 | 60 | }; |
61 | | - nativeBuildInputs = with pkgs.python39Packages; [ pythonRelaxDepsHook ]; |
| 61 | + nativeBuildInputs = with pkgs.python3Packages; [ pythonRelaxDepsHook ]; |
62 | 62 | pythonRelaxDeps = true; |
63 | 63 | doCheck = false; |
64 | | - propagatedBuildInputs = with pkgs.python39Packages; [ |
| 64 | + propagatedBuildInputs = with pkgs.python3Packages; [ |
65 | 65 | packaging |
66 | 66 | prettytable |
67 | 67 | pycryptodome |
68 | 68 | packages.crytic-compile |
| 69 | + web3 |
69 | 70 | ]; |
70 | | - postPatch = '' |
71 | | - echo "web3 dependency depends on ipfs which is bugged, removing it from the listed deps" |
72 | | - sed -i 's/"web3>=6.0.0",//' setup.py |
73 | | - ''; |
74 | 71 | }); |
75 | 72 |
|
76 | 73 | medusa = pkgs.buildGoModule { |
77 | 74 | pname = "medusa"; |
78 | | - version = "0.1.0"; # from cmd/root.go |
| 75 | + version = "0.1.8"; # from cmd/root.go |
79 | 76 | src = ./.; |
80 | | - vendorSha256 = "sha256-odBzty8wgFfdSF18D15jWtUNeQPJ7bkt9k5dx+8EFb4="; |
| 77 | + vendorHash = "sha256-12Xkg5dzA83HQ2gMngXoLgu1c9KGSL6ly5Qz/o8U++8="; |
81 | 78 | nativeBuildInputs = [ |
82 | 79 | packages.crytic-compile |
83 | 80 | pkgs.solc |
|
114 | 111 | go-tools |
115 | 112 | gopls |
116 | 113 | go-outline |
117 | | - gocode |
118 | 114 | gopkgs |
119 | 115 | gocode-gomod |
120 | 116 | godef |
|
0 commit comments