Skip to content

Commit 245b709

Browse files
committed
Update nix flake references
1 parent cc78b49 commit 245b709

File tree

2 files changed

+46
-32
lines changed

2 files changed

+46
-32
lines changed

flake.lock

Lines changed: 25 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description = "Medusa smart-contract fuzzer";
33

44
inputs = {
5-
nixpkgs.url = "nixpkgs/nixos-22.11";
5+
nixpkgs.url = "nixpkgs/nixos-24.11";
66
flake-utils.url = "github:numtide/flake-utils";
77
};
88

@@ -12,7 +12,7 @@
1212
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
1313
pyCommon = {
1414
format = "pyproject";
15-
nativeBuildInputs = with pkgs.python39Packages; [ pythonRelaxDepsHook ];
15+
nativeBuildInputs = with pkgs.python3Packages; [ pythonRelaxDepsHook ];
1616
pythonRelaxDeps = true;
1717
doCheck = false;
1818
};
@@ -21,63 +21,60 @@
2121

2222
packages = rec {
2323

24-
solc-select = pkgs.python39Packages.buildPythonPackage (pyCommon // {
24+
solc-select = pkgs.python3Packages.buildPythonPackage (pyCommon // {
2525
pname = "solc-select";
26-
version = "1.0.3";
26+
version = "1.0.4";
2727
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";
3030
};
31-
propagatedBuildInputs = with pkgs.python39Packages; [
31+
propagatedBuildInputs = with pkgs.python3Packages; [
3232
packaging
3333
setuptools
3434
pycryptodome
3535
];
3636
});
3737

38-
crytic-compile = pkgs.python39Packages.buildPythonPackage (pyCommon // rec {
38+
crytic-compile = pkgs.python3Packages.buildPythonPackage (pyCommon // rec {
3939
pname = "crytic-compile";
40-
version = "0.3.1";
40+
version = "0.3.7";
4141
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";
4444
};
45-
propagatedBuildInputs = with pkgs.python39Packages; [
45+
propagatedBuildInputs = with pkgs.python3Packages; [
4646
cbor2
4747
pycryptodome
4848
setuptools
4949
packages.solc-select
5050
];
5151
});
5252

53-
slither = pkgs.python39Packages.buildPythonPackage (pyCommon // rec {
53+
slither = pkgs.python3Packages.buildPythonPackage (pyCommon // rec {
5454
pname = "slither";
55-
version = "0.9.3";
55+
version = "0.10.4";
5656
format = "pyproject";
5757
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";
6060
};
61-
nativeBuildInputs = with pkgs.python39Packages; [ pythonRelaxDepsHook ];
61+
nativeBuildInputs = with pkgs.python3Packages; [ pythonRelaxDepsHook ];
6262
pythonRelaxDeps = true;
6363
doCheck = false;
64-
propagatedBuildInputs = with pkgs.python39Packages; [
64+
propagatedBuildInputs = with pkgs.python3Packages; [
6565
packaging
6666
prettytable
6767
pycryptodome
6868
packages.crytic-compile
69+
web3
6970
];
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-
'';
7471
});
7572

7673
medusa = pkgs.buildGoModule {
7774
pname = "medusa";
78-
version = "0.1.0"; # from cmd/root.go
75+
version = "0.1.8"; # from cmd/root.go
7976
src = ./.;
80-
vendorSha256 = "sha256-odBzty8wgFfdSF18D15jWtUNeQPJ7bkt9k5dx+8EFb4=";
77+
vendorHash = "sha256-12Xkg5dzA83HQ2gMngXoLgu1c9KGSL6ly5Qz/o8U++8=";
8178
nativeBuildInputs = [
8279
packages.crytic-compile
8380
pkgs.solc
@@ -114,7 +111,6 @@
114111
go-tools
115112
gopls
116113
go-outline
117-
gocode
118114
gopkgs
119115
gocode-gomod
120116
godef

0 commit comments

Comments
 (0)