|
1 | 1 | { pkgs ? import (builtins.fetchTarball { |
2 | | - name = "nixpkgs-unstable-2021-08-11"; |
3 | | - url = "https://github.com/nixos/nixpkgs/archive/0ac49d7c7b5625a2554f393ddfba72128c8f0f5d.tar.gz"; |
4 | | - sha256 = "sha256:03s2k619fvsxv28gk574pphhf4k3y8dxm8ir3d3vvp04i7n4z6wj"; |
| 2 | + name = "nixpkgs-unstable-2021-10-15"; |
| 3 | + url = "https://github.com/nixos/nixpkgs/archive/ee084c02040e864eeeb4cf4f8538d92f7c675671.tar.gz"; |
| 4 | + sha256 = "sha256:1x8amcixdaw3ryyia32pb706vzhvn5whq9n8jin0qcha5qnm1fnh"; |
5 | 5 | }) {} |
6 | 6 | }: |
7 | 7 |
|
|
32 | 32 |
|
33 | 33 | v = "1.7.2"; |
34 | 34 |
|
35 | | - f = { mkDerivation, aeson, ansi-terminal, base, base16-bytestring |
36 | | - , binary, brick, bytestring, cborg, containers, data-dword, data-has |
37 | | - , deepseq, directory, exceptions, filepath, hashable, hevm, hpack |
38 | | - , lens, lens-aeson, megaparsec, MonadRandom, mtl |
39 | | - , optparse-applicative, process, random, stm, tasty |
40 | | - , tasty-hunit, tasty-quickcheck, temporary, text, transformers |
41 | | - , unix, unliftio, unliftio-core, unordered-containers, vector |
42 | | - , vector-instances, vty, wl-pprint-annotated, word8, yaml |
43 | | - , cabal-install, extra, ListLike, hlint, semver, haskell-language-server |
| 35 | + f = { mkDerivation, aeson, ansi-terminal, base, base16-bytestring, binary |
| 36 | + , brick, bytestring, cborg, containers, data-dword, data-has, deepseq |
| 37 | + , directory, exceptions, filepath, hashable, hevm, hpack, lens, lens-aeson |
| 38 | + , megaparsec, MonadRandom, mtl, optparse-applicative, process, random |
| 39 | + , semver, stm, tasty, tasty-hunit, tasty-quickcheck, temporary, text |
| 40 | + , transformers, unix, unliftio, unliftio-core, unordered-containers, vector |
| 41 | + , vector-instances, vty, wl-pprint-annotated, word8, yaml, extra, ListLike |
44 | 42 | }: |
45 | 43 | mkDerivation rec { |
46 | 44 | pname = "echidna"; |
|
50 | 48 | isExecutable = true; |
51 | 49 | libraryHaskellDepends = [ |
52 | 50 | aeson ansi-terminal base base16-bytestring binary brick bytestring |
53 | | - cborg containers data-dword data-has deepseq directory exceptions filepath |
54 | | - hashable hevm lens lens-aeson megaparsec MonadRandom mtl |
| 51 | + cborg containers data-dword data-has deepseq directory exceptions |
| 52 | + filepath hashable hevm lens lens-aeson megaparsec MonadRandom mtl |
55 | 53 | optparse-applicative process random stm temporary text transformers |
56 | 54 | unix unliftio unliftio-core unordered-containers vector |
57 | 55 | vector-instances vty wl-pprint-annotated word8 yaml extra ListLike |
58 | 56 | semver |
59 | 57 | ] ++ (if pkgs.lib.inNixShell then testHaskellDepends else []); |
60 | | - libraryToolDepends = [ |
61 | | - hpack cabal-install hlint slither-analyzer solc |
62 | | - haskell-language-server |
63 | | - ]; |
64 | 58 | executableHaskellDepends = libraryHaskellDepends; |
65 | | - testHaskellDepends = [ |
66 | | - tasty tasty-hunit tasty-quickcheck |
67 | | - ]; |
| 59 | + testHaskellDepends = [ tasty tasty-hunit tasty-quickcheck ]; |
| 60 | + libraryToolDepends = [ hpack ]; |
| 61 | + testToolDepends = [ slither-analyzer solc ]; |
68 | 62 | preConfigure = '' |
69 | 63 | hpack |
70 | 64 | # re-enable dynamic build for Linux |
|
76 | 70 | doCheck = true; |
77 | 71 | }; |
78 | 72 |
|
79 | | - drv = pkgs.haskellPackages.callPackage f { }; |
| 73 | + echidna = pkgs.haskellPackages.callPackage f { }; |
| 74 | + echidnaShell = pkgs.haskellPackages.shellFor { |
| 75 | + packages = p: [ echidna ]; |
| 76 | + buildInputs = with pkgs.haskellPackages; [ |
| 77 | + hlint |
| 78 | + cabal-install |
| 79 | + haskell-language-server |
| 80 | + ]; |
| 81 | + }; |
80 | 82 | in |
81 | 83 | if pkgs.lib.inNixShell |
82 | | - then drv.env |
83 | | - else pkgs.haskell.lib.justStaticExecutables drv |
| 84 | + then echidnaShell |
| 85 | + else pkgs.haskell.lib.justStaticExecutables echidna |
0 commit comments